This is a simple Tic-Tac-Toe game built using ReactJS and powered by Vite for blazing fast development. The game allows two players to compete against each other in a classic 3x3 grid. It's deployed on Vercel for easy access!
Check out the live demo here: Tic-Tac-Toe Game
- Interactive Gameplay: Two-player game with alternating turns.
- React State Management: Game state is managed using React hooks.
- Fast Build: Built with Vite for a quick and efficient development experience.
- Deployed on Vercel: Accessible online through Vercel’s global edge network.
- ReactJS: For building the UI and managing the game state.
- Vite: Fast and lightweight build tool for development.
- CSS: For styling the components.
- Vercel: For deployment.
To run this project locally, follow these steps:
- Clone the repo:
git clone https://github.com/shubham03mathur/tic-tac-toe.git
- Navigate to the project directory:
cd tic-tac-toe
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser and visit
http://localhost:5173
.
- The game is played on a 3x3 grid.
- Player 1 uses X, and Player 2 uses O.
- Players take turns to place their marks in empty squares.
- The first player to align three of their marks horizontally, vertically, or diagonally wins.
- If all squares are filled without a winner, the game ends in a draw.
Feel free to fork this repository and submit pull requests if you have improvements in mind!
This project is open-source and available under the MIT License.