This is a python Tic-Tac-Toe game - a simple project for beginners.
Start the script by running in a command line:
python3 tic-tac-toe-game.py
The game is meant for two players. Thus, Player 1 proceeds by inputting the coordinates for o. These coordinates represent rows and columns and are numbers from 0 to 2 and shall be inputted in a concatenated form.
For example, the coordinates 01 would mean zeroth row and first column and would place an o here:
--- --- ---
| | o | |
--- --- ---
| | | |
--- --- ---
| | | |
--- --- ---
and coordinates 12 would result:
--- --- ---
| | | |
--- --- ---
| | | o |
--- --- ---
| | | |
--- --- ---
Then, it is the turn of Player 2, who shall input the coordinates for x. The game continues by conventional rules.