This is a basic implementation of the Tic Tac Toe game built with React Vite and Chakra UI. The game features a simple interface where two players can take turns to play. The game will display the winner or a draw when the game ends.
You can play the game in here or deploy it manually below.
- Interactive game board
- Player turns indicated with "X" and "O"
- Winning line highlighted with a red color
- Restart button to reset the game
- Responsive design using Chakra UI components
-
Clone this repository to your local machine:
git clone https://github.com/mch-fauzy/tic-tac-toe-game.git
-
Navigate to the project directory:
cd tic-tac-toe-game
-
Install the required dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your web browser and go to
http://localhost:5173
to play the game. -
Players can take turns by clicking on the empty squares. The game will display the winner or a draw when the game ends.
-
Click the "Restart" button to start a new game.
Contributions are welcome! If you find any issues or want to contribute improvements, feel free to open a pull request.
This project is licensed under the MIT License.