Skip to content

ernest-lamptey/TicTacToeGame

Repository files navigation

The challenge

Your challenge is to build out this Tic Tac Toe game and get it looking as close to the design as possible.

Your users should be able to:

  • View the optimal layout for the game depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Play the game either solo vs the computer or multiplayer against another person
  • Save the game state in the browser so that it’s preserved if the player refreshes their browser
  • Instead of having the computer randomly make their moves, try making it clever so it’s proactive in blocking your moves and trying to win

Expected behaviour

  • You can choose to make the default screen either the new game menu or the solo player game board. Note that we're using the solo player game board for the design screenshot, so if you choose the new game menu it won't match up in the design comparison slider. This isn't a big deal, but is something worth considering.
  • On the new game screen, whichever mark isn't selected for the first player is automatically assigned to the second player when the game is started.
  • The first turn of the first round is always played by whoever is playing as X. For every following round, the first turn alternates between O and X.
  • After a round, if the player chooses to quit the game, they should be taken back to the new game menu.
  • If the restart icon in the top right is clicked, the "Restart game?" modal should show and allow the player to reset the game or cancel and continue to play.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published