A single player Tic-Tac-Toe game with an intelligent computer player implemented in Python
No special libraries required just run with Python 3
- Basic Gameplay
- Random player will start each time
- Dynamic allocation of '0' or 'X' to each player
- Player vs AI
- Intelligent computer technique implemented
python tateti.py
On Macos it might be python3 tateti.py
Have fun!
To run the tests, run the appropriate command below (why they are different):
- Python 2.7:
py.test bank_account_test.py
- Python 3.4+:
pytest bank_account_test.py
Alternatively, you can tell Python to run the pytest module (allowing the same command to be used regardless of Python version):
python -m pytest bank_account_test.py
-v
: enable verbose output-x
: stop running tests on first failure--ff
: run failures from previous test before running other test cases
For other options, see python -m pytest -h