Building the Tic-Tac-Toe game
Let's do something fun! Let's build the Tic-Tac-Toe game, also known as noughts and crosses or Xs and Os. Players will choose who takes the Xs and who takes the Os. Then, they will be taking turns to mark spaces in a 3×3 grid, one mark per turn. The player who succeeds in placing three of his marks in a horizontal, vertical, or diagonal row wins the game.
Players must enter their emails and names for registration to create an account before being able to start a game. They will receive a game score after each match, which is going to be added to their total score.
A leaderboard provides information on player rankings and top scores.
For creating a game, a player must send an invitation to another player, then a specific waiting page is displayed for him until another player has responded. The other player, after reception of the invitation email, can then confirm the request and join the game. When the two players are online, the game starts.
As explained in the...