This is classic Tic-Tac-Toe game implemented with Python. Tiktaktoe is a turn based game where one player uses "X" while the other uses "O" in order to mark its place on a grid by 3x3. Goal is to make three of oneselves marks in a row, column or diagonal before the opponent does.
- Python 3.x
- Clone the repository
git clone https://github.com/onderpala/tictactoe
- Go to projects directory
cd tictactoe
- Run the game!
python tictactoe.py
- Enter the tour limit (where the game ends)
- Each player, starting from P1('X' mark), makes its moves on the board.
- If anyone can achieve mark three places in a row, column or diagonally, he/she wins the round.
- When tour limit is reached game ends and game prints the scores and winner.
To run tests, run the following command
python test_tictactoe.py
-
Clean up written tests creating a class for every function in my Game class -
Clean up documentation (Maybe I can create --help command)
-
Create tests for play_game function