Tic-Tac-Toe is a simple two-player game, traditionally with its marks as X and O. Each player places his/her mark in a space and alternate turns in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.
This is what the pen and pencil game board looks like. In the following illustration, the player with the X marker is the winner:
In this chapter, we will create a two-player Tic-Tac-Toe game with the following basic requirements:
- As a player, I should be able to register with my name and display a picture
- As a player, I should be able to find an opponent, that is, the second player to play against
- The first two players to find opponents should be paired as opponents in the game
- The decision as to which player gets the chance to make the first move should be fair
- As a player, I should be able to use my display picture as my mark, rather than the conventional X and O
- The decision as to who...