This is a tictactoe game built using python3.7. It's a terminal based application.
- Python 3.7 required.
- It requires a colorama package.
pip install -r requirements.txt
python3.7 tictactoe.py
➜ python3.7 tictactoe.py
Enter the size of tictactoe game you wanna play? 3
0 1 2
0
1
2
Current player: 1
What column do you want to play? ( eg: 0, 1, 2 ): 0
What row do you want to play? ( eg: 0, 1, 2 ): 0
0 1 2
0 X
1
2
Current player: 2
What column do you want to play? ( eg: 0, 1, 2 ): 1
What row do you want to play? ( eg: 0, 1, 2 ): 0
0 1 2
0 X O
1
2
Current player: 1
What column do you want to play? ( eg: 0, 1, 2 ): 1
What row do you want to play? ( eg: 0, 1, 2 ): 1
0 1 2
0 X O
1 X
2
Current player: 2
What column do you want to play? ( eg: 0, 1, 2 ): 2
What row do you want to play? ( eg: 0, 1, 2 ): 0
0 1 2
0 X O O
1 X
2
Current player: 1
What column do you want to play? ( eg: 0, 1, 2 ): 2
What row do you want to play? ( eg: 0, 1, 2 ): 2
0 1 2
0 X O O
1 X
2 X
Player 1 is the winner diagonally ( \ )!!
Game is over, would you like to play again?? ( y/n ): n
GoodBye....