A tic-tac-toe game using react.js
This project is based on the official tutorial of react.js. The link for it is here: https://reactjs.org/tutorial/tutorial.html
Following are the features of Game
- Lets you play tic-tac-toe
- Indicates when a player has won the game
- Stores a game’s history as a game progresses
- Allows players to review a game’s history and see previous versions of a game’s board
Apart from the basic functionality of the game, following features are added by solving the exercise of the same tutorial
- Displaying of the location for each move in the format (col, row) in the move history list
- Highlighting the currently selected item in the list as bold
- Rewriting the board initialization code using loops
- A toggle button to sort the list of moves into ascending/descending order
- Highlighting the 3 positions of a winner
- When no one wins, displaying the message "Draw"