Decide who will go first.
Player is X, and the computer is O.
Take turns placing your symbol on the grid.
The first player to get three in a row (horizontally, vertically, or diagonally) wins the game.
If all squares are filled and neither player has won, the game ends in a tie.
Play again if desired.