Skip to content

mch-fauzy/tic-tac-toe-game

Repository files navigation

Tic Tac Toe Game

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.

Table of Contents

Features

  • 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

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/mch-fauzy/tic-tac-toe-game.git
    
  2. Navigate to the project directory:

    cd tic-tac-toe-game
    
  3. Install the required dependencies:

    npm install
    

Usage

  1. Start the development server:

    npm run dev
    
  2. Open your web browser and go to http://localhost:5173 to play the game.

  3. Players can take turns by clicking on the empty squares. The game will display the winner or a draw when the game ends.

  4. Click the "Restart" button to start a new game.

Contributing

Contributions are welcome! If you find any issues or want to contribute improvements, feel free to open a pull request.

License

This project is licensed under the MIT License.