- Python 3.10
- Poetry 1.2.2
poetry install
poetry run tictactoe/tictactoe.py --help
Usage: tictactoe.py [OPTIONS]
Options:
--size TEXT Size of the grid
--plot Whether to plot the board in 3D
--help Show this message and exit.
# 4x4x4 cube with plotting
$ poetry run tictactoe/tictactoe.py --size 4 --plot
Player 1, pick your next move in the range (0,0,0) to (3,3,3) or type 'exit' to quit the game
>>> (0,0,0)
Player 2, pick your next move in the range (0,0,0) to (3,3,3) or type 'exit' to quit the game
>>> (2,0,1)
Player 1, pick your next move in the range (0,0,0) to (3,3,3) or type 'exit' to quit the game
>>> (1,1,1)
Player 2, pick your next move in the range (0,0,0) to (3,3,3) or type 'exit' to quit the game
>>> (1,2,2)
Player 1, pick your next move in the range (0,0,0) to (3,3,3) or type 'exit' to quit the game
>>> (2,2,2)
Player 2, pick your next move in the range (0,0,0) to (3,3,3) or type 'exit' to quit the game
>>> (2,0,0)
Player 1, pick your next move in the range (0,0,0) to (3,3,3) or type 'exit' to quit the game
>>> (3,3,3)
Player 1 has won! Congrats!
poetry install
poetry run pytest