To run the game with default parameters (one 4x4 game):
-
Regular Game (Manual Mode)
- Select "Manual" in the configuration window
- Click "OK"
- Play the game:
- First click on a square: Mark with X (not selected)
- Second click: Mark with O (selected)
- Third click: Return to unmarked state
-
Automatic Solver
- Select an algorithm from the list in the configuration window
- Click "OK" to watch the algorithm solve the puzzle
To exit without choosing an option, click "Exit".
You can customize the game run using the following flags:
--grid-size
: Change the board size--num-games
: Run multiple games automatically (results printed to terminal)--solver
: Choose a specific solving algorithm
Example command with parameters:
python SumpleteGame.py --grid-size 6 --num-games 2 --solver hill_climbing
hill_climbing
backtracking_lcv