def main(): args, initial_condition = parse_args() # Always multiply the number of evolutions by 2 to get the length of each row. # This produces cleaner images. automata = Automata(initial_condition(args.evolutions * 2), apply_elementary_rule(args.rule_number)) automata.evolve(len(automata.state))