Tic Tac Toe is classic game played with paper and pencil on a 3 by 3 grid. The game is played by two players. Each player takes turns placing their marks on the grid until either player has three of their marks in a row either horizontally, vertically, or diagonally in which the winner is decided.
To begin the game, first run the program. The game starts with “X” player first. To choose your mark, you have to type in the coordinates on the displayed grid. It goes by ‘X’ and ‘Y’ coordinates. For example if you typed in “0 1”, it will place a mark on the pos01 position. This goes on until either player wins or draw.
You can find the source code here.