Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.74 KB

README.md

File metadata and controls

23 lines (17 loc) · 1.74 KB

Tic Tac Toe

Netlify Status

Visit deployed app

User Stories:

  1. In light making the game accessible to a wider audience, I want a dropdown button to change the game language so that users can play the game in French and Mandarin. I also want this to be easily extensible so more languages can be added in future.
  2. As a user, I want to be able to toggle a switch so that I can enjoy the game with light and dark themes.
  3. As a user, I want to be able to view the time so that I can keep an eye on how long I'm spending on the game.

Feature list:

  1. Display the location for each move in the format (col, row) in the move history list.
  2. Bold the currently selected item in the move list.
  3. Rewrite Board to use two loops to make the squares instead of hardcoding them.
  4. Add a toggle button that lets you sort the moves in either ascending or descending order.
  5. When someone wins, highlight the three squares that caused the win.
  6. When no one wins, display a message about the result being a draw
  7. Selecting a previous move in the move history after a player has won removes all highlighting. Selecting the winning move again will highlight the three squares that caused the win.
  8. Backtracking and then playing out a different sequence of moves that result in a different outcome (either different winning squares or winner) will result in the new three squares that caused the resulting win to be highlighted.
  9. Add board coordinates and ensure that moves in move history match them accurately.