Console based, 2 player Tic Tac Toe game in Python. Made without looking at others.
Create a virtual environment
python3 -m venv tic_tac_toe
Enable environment
source bin/activate
Run script
python TicTacToe.py
- Open a terminal
- Select '
x
' or 'o
' to start (case insensitive) - Enter the position (
1
,2
,3
...) for your turn
python -m unittest Test_TicTacToe.py