-
Make sure you have Node.js and npm (Node Package Manager) installed on your machine.
-
Clone this repository to your local machine or download and extract the ZIP file.
-
Open your terminal or command prompt and navigate to the project directory.
-
Run the following command to install the required dependencies:
npm install
-
After the installation is complete, start the development server by running the following command
npm run dev
-
The game should now be running on your local server. Open your web browser and visit
http://localhost:5173/
to play the game.
- The game starts with Player 1 (X) making the first move. Player 2 (O) will take turns after each move.
- Click on an empty cell on the grid to mark your symbol (X or O).
- The game will automatically determine if a player has won or if the game is a draw.
- If a player wins, a message will be displayed indicating the winner.
- To start a new game, simply refresh the page or tap restart.