This is a simple Tic tac toe. It requires two players to make input and try as much as possible to prevent each other to have a full row.
Tic-tac-toe is a game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.
To play the game, You have to be online.
To test the game online, click on this demo link.
-
When the game starts, two players are prompted to provide their names.
-
The players are prompted to choose the symbol of play; X or O By default, the second player gets the other symbol not chosen by the first player
-
The board is then displayed as shown below
-
The player chooses between the available positions from 1 to 9.
-
A position can not be chosen twice
-
The first player to get his symbols aligned in a horizontal, vertical or diagonal row wins the game
-
A draw occurs when all the positions on the board have been filled up, yet no player has been able to win.
-
The Game ends when there is a win or a draw
-
You can always choose to play again or quit the game.
- HTML, CSS, Bootstrap, Javascript
- Vscode for coding
- ESLint for Validation
For more information, see the The Odin Project.
👤 Selma Ndi
- Github: @githubhandle
- Twitter: @twitterhandle
- Linkedin: linkedin
👤 Edem Agbenyo
- Github: @githubhandle
- Twitter: @twitterhandle
- Linkedin: linkedin