https://github.com/9h7d9x/01_tic-tac-toe-game-react_project
Tic Tac Toe Game
https://github.com/9h7d9x/01_tic-tac-toe-game-react_project
reactjs-project
Last synced: 18 days ago
JSON representation
Tic Tac Toe Game
- Host: GitHub
- URL: https://github.com/9h7d9x/01_tic-tac-toe-game-react_project
- Owner: 9H7D9x
- Created: 2024-02-07T19:18:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T07:34:40.000Z (over 2 years ago)
- Last Synced: 2025-02-23T09:13:39.014Z (over 1 year ago)
- Topics: reactjs-project
- Language: JavaScript
- Homepage:
- Size: 311 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Tic-Tac-Toe Game (React)
This is a simple Tic-Tac-Toe game built using React. It allows two players to take turns marking spaces on a 3x3 grid, aiming to get three of their symbols in a row, column, or diagonal.
Features
Responsive Design: The game is designed to work seamlessly on both desktop and mobile devices.
Gameplay: Two players can take turns marking X and O on the grid until one player wins or the game ends in a draw.
Win Detection: The game automatically detects when a player has won and highlights the winning combination.
Restart: Players can restart the game at any time to start a new match.
How to Play
Clone the Repository:
git clone https://github.com/your_username/tic-tac-toe-react.git
Navigate to the Project Directory:
cd tic-tac-toe-react
Install Dependencies:
npm install
Start the Development Server:
npm start
Open Your Browser:
Navigate to http://localhost:3000 to view the game.
Gameplay:
Players take turns clicking on empty squares to place their symbol (X or O).
The game automatically detects when a player wins or if the game ends in a draw.
To restart the game, click the "Restart" button.
Technologies Used
React
HTML5
CSS3
Contributing
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.