def stage19(): calculator = calc666.Calc666([".", "1", "2"], binary_inverse=stage19_inverse) factors = helper.get_factors(666) nodes = [calculator.root] for i in range(1, 3): next_level = [] for node in nodes: print(node) factors = helper.get_factors(node.value) for val in factors: calculator.add_nodes_binary(node, val) for n in node.binary_children: next_level.append(n[0]) next_level.append(n[1]) nodes = list(next_level)
def stage25(): calc = calc666.Calc666(["5", "7"], binary_inverse=stage25_inverse) helper.breadth_first(calc, helper.get_factors)
def stage24(): calc = calc666.Calc666(["2", "6"], binary_inverse=stage24_inverse) helper.breadth_first(calc, helper.get_factors)
def stage23(): calculator = calc666.Calc666(["."], binary_inverse=stage23_inverse) for i in range(666): calculator.add_nodes_binary(calculator.root, i)
def stage22(): calculator = calc666.Calc666([".", "1", "2", "5", "9"], binary_inverse=stage22_inverse) helper.breadth_first(calculator, helper.get_factors)
def stage21(): calculator = calc666.Calc666(["6"], binary_inverse=stage21_inverse) for i in range(600): calculator.add_nodes_binary(calculator.root, i)
def stage47(): calc = calc666.Calc666(["8", "9", "6"], binary_inverse=stage40_inverse) for i in range(666**2): calc.add_nodes_binary(calc.root, i)
def stage45(): calc = calc666.Calc666([], binary_inverse=stage45_inverse) for i in range(1, 15): calc.add_nodes_binary(calc.root, i)
def stage43(): calc = calc666.Calc666(["1", "2", "4", "5", "6", "7"], binary_inverse=stage42_inverse) calc.root.value = 6 * 7 * 7 + 6 * 7 + 6 helper.breadth_first(calc, range, 3)
def stage42(): calc = calc666.Calc666(["4", "5", "6", "9", "2"], binary_inverse=stage42_inverse) helper.breadth_first(calc, range, 3)
def stage41(): calc = calc666.Calc666(["4", "2", "6", "."], binary_inverse=stage41_inverse) for i in range(1, 666): calc.add_nodes_binary(calc.root, i)
def stage30(): calc = calc666.Calc666(["."], binary_inverse=stage30_inverse) helper.breadth_first(calc, range, 3)
def stage27(): calc = calc666.Calc666(["6"], binary_inverse=stage27_inverse) for i in range(666): calc.add_nodes_binary(calc.root, i)