This program is written using python language.
- Intellij ide
- No Gui. Just a output terminal game.
- Packages used -> random, time.
Game play:-
Note: - Two players needed to play this game. - Used number pad to make a move by player.
The game uses noughts and crosses , each for a player. The play board contains 3X3 matrix or simply 3 rows and 3 columns(9 free spaces). The player has to get 3 of his symbol simultaneously to win the game. If the board is full, match is said to be tied.
-------------
| 7 | 8 | 9 |
-------------
| 4 | 5 | 6 |
-------------
| 1 | 2 | 3 |
-------------
The winning sequences are - (1, 2, 3) (4, ,5, 6) (7, 8, 9) - Horizontal (1, 4, 7) (2, 5, 8) (3, 6, 9) - Vertical (3, 5, 7) (1, 5, 9) - Diagonal
For more information refer - https://www.wikiwand.com/en/Tic-tac-toe