Skip to content

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.

Notifications You must be signed in to change notification settings

Datagirlcmr/Game-Tic-Tac-Toe-

Repository files navigation

Contributors Forks Stargazers Issues

TIC TAC TOE GAME

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.


Logo

What is Tic Tac Toe

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.

Getting Started

To play the game, You have to be online.

Test Online

To test the game online, click on this demo link.

Game Rules

  1. When the game starts, two players are prompted to provide their names.

  2. 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

  3. The board is then displayed as shown below

    position

  4. The player chooses between the available positions from 1 to 9.

  5. A position can not be chosen twice

  6. The first player to get his symbols aligned in a horizontal, vertical or diagonal row wins the game

  7. A draw occurs when all the positions on the board have been filled up, yet no player has been able to win.

  8. The Game ends when there is a win or a draw

  9. You can always choose to play again or quit the game.

Built With

  • HTML, CSS, Bootstrap, Javascript
  • Vscode for coding
  • ESLint for Validation

For more information, see the The Odin Project.

Authors

👤 Selma Ndi

👤 Edem Agbenyo

Acknowledgements

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published