A fun and interactive Tic-Tac-Toe game with additional features like undo, redo and reset functionality, making it more engaging and user-friendly.
-
Undo/Redo : Revisit previous moves or redo undone moves seamlessly.
-
Reset Game : Start a fresh game anytime with the reset button.
-
Winning Highlights : Hightlights the winning squares in green for clear visualization.
- React
- Players take turns marking a square with "X" or "O"
- The first player to get three in a row (horizontally, vertically or diagonally) wins.
- Use the undo and redo buttons to revisit moves.
- Click reset to start a new game.
To get started, follow these steps:
-
Clone the repository:
git clone https://github.com/4ssh1/Tic-tac-toe.git cd Tic-tac-toe -
Install dependencies:
npm install
-
Start the server:
npm run dev
Tic-tac-toe/
├── public/ # Static files
├── src/
│ ├── components/ # React components
│ │ └── Board.js # Game board logic
│ │ └── Square.js # Individual square component
│ ├── App.js # Main application component
│ ├── index.js # React entry point
│ └── styles.css # Styling for the game
├── package.json # Project metadata and dependencies
├── README.md # Project documentation
└── .gitignore # Ignored files in Git
We welcome contributions! To contribute:
-
Fork the repository.
-
Create a new branch:
git checkout -b feature-name
-
Commit your changes and push them to your fork.
-
Create a pull request.
This project is licensed under the MIT license.