LakshyaDuhoonISU / react-tictactoe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic-Tac-Toe Game

Welcome to the Tic-Tac-Toe game! This is a simple implementation of the classic Tic-Tac-Toe game using React.js. The game allows two players to take turns and place their marks (X and O) on a 3x3 grid. The first player to align three of their marks horizontally, vertically, or diagonally wins the game.

Features -

- Interactive user interface
- Two-player gameplay
- Win detection
- Responsive design
- Easy to understand code

Installation -

Follow these steps to set up the project locally:
1. Clone the repository:
git clone https://github.com/LakshyaDuhoon/tic-tac-toe-react.git cd tic-tac-toe-react
  1. Install the dependencies:
npm install
  1. Start the development server:
npm start

Usage -

- Click on any square in the grid to place your mark (X or O).
- Players take turns until one player wins or the game ends in a draw.
- The game will display a message indicating the winner or if the game is a draw.
- To restart the game, simply refresh the page.

Contributing -

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
1. Fork the repository
2. Create a new branch (git checkout -b feature-branch)
3. Make your changes
4. Commit your changes (git commit -m 'Add some feature')
5. Push to the branch (git push origin feature-branch)
6. Open a pull request

About


Languages

Language:JavaScript 70.6%Language:CSS 22.0%Language:HTML 7.3%