ga.py takes 3 command-line arguments:
- Which puzzle it is solving (1, 2, or 3)
- The name of the file it should read in that contains the puzzle information
- How many seconds it has to work on a solution
Example: ga.py 3 input/puzzle3_input 1
Program prints out:
- The best solution it found
- The best solution's score
- How many generations it ran for
- At what generation it found its best solution
Also, the program creates output folder where it writes data for plotting.