This is a simple web-based Tic-Tac-Toe game developed using React. It allows two players to play the classic Tic-Tac-Toe game and keeps track of their scores in a leaderboard.
- Two players can enter their names.
- The game keeps track of each player's score.
- The leaderboard displays players' names and scores.
- Players can restart the game.
- Players can quit the game and clear their scores.
You can play a live demo of the game here.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
- Node.js and npm installed on your machine.
-
Clone the repository to your local machine:
git clone https://github.com/Thrinkxs/Tic-Tac-Toe.git
-
Navigate to project directory: cd tic-tac-toe
-
Install dependencies using
npm install
-
Usage: i. start dev server: npm run dev ii. Open your web browser and navigate to http://localhost:5173 to play the game. iii. Enter the names of Player 1 and Player 2. iv. Enjoy the game
The leaderboard displays the names and scores of Player 1 and Player 2.
Click the "Restart Game" button to start a new game without changing players' names and scores.
Click the "Quit Game" button to clear player names and scores. This action cannot be undone.
React - JavaScript library for building user interfaces.