Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mch-fauzy/tic-tac-toe-game

Tic Tac Toe game built with React and Chakra UI
https://github.com/mch-fauzy/tic-tac-toe-game

chakra-ui javascript react

Last synced: 1 day ago
JSON representation

Tic Tac Toe game built with React and Chakra UI

Awesome Lists containing this project

README

        

# 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](https://tic-tac-toe-game-silk-chi.vercel.app/) or deploy it manually below.

## Table of Contents

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)

## 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](LICENSE).