Tic-tac-toe game
- 3 x 3 grid
- User and computer play turn by turn
- The board and the moves are displayed after each turn
- Once a game is won, the winner is announced and a new game can be started
- Create virtual enviroment
virtualenv venv
- Activate virtual enviroment
Generally:
source venv/bin/activate
When using fish:
. venv/bin/activate.fish
- Install all dependencies
When finish, deactivate venv:
Generally:
source deactivate
When using fish:
deactivate
python2 game/main.py
And enjoy!
Note: I'm using python2 since there is a problem with my Mac OS, see:
https://github.com/pygame/pygame/issues/555
You can find some tests in /tests
.
To run:
python2 -m pytest