A program that writes its own programs to produce a desired output, using a genetic algorithm
Run python3 command-creator.py
Enter a space-separated sequence of integers like 1 2 -3. The program will output the sequence of commands that constructs your desired sequence of integers.
If you run the same input of integers more than once, you'll most likely get a different sequence of commands. This is because the genetic algorithm uses some randomization by nature. While they are both valid, one of them may be more concise than the other.
>
to move right | <
to move left | +
to increment value | -
to decrement value
Type Q, press Enter