Deploy Link - https://tic-tac-toe-s.surge.sh/
This is a Tic Tac Toe game project built using ReactJS, Vite, HTML, SCSS, and JavaScript(JSX). The project aims to provide a simple implementation of the classic Tic Tac Toe game where two players take turns marking spaces on a 3x3 grid.
- Interactive gameplay with two players taking turns to mark spaces as 'X' or 'O'.
- Winning condition detection to determine when a player has achieved a winning pattern.
- Display of the winner or a tie game message.
- Option to start a new game after the current game has finished.
- Current game history to keep track of moves made by each player.
- Clone the repository: git clone https://github.com/saksham-raghuvanshi/tic-tac-toe-react-vite.git
- Navigate to the project directory: cd tic-tac-toe-react-vite
- Install dependencies: npm install
- That's it! You now have the project files on your local machine, and the required dependencies are installed.
To start the development server and play the game locally, run the following command:
npm run dev
This will start the development server and open the game in your default browser. You can take turns by clicking on the spaces on the game board. The game logic and functionality are implemented in the src directory, particularly in the App.js file.
Contributions to this project are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.