A modern, functional Tic-Tac-Toe game built with React and Vite. Enjoy the classic game with additional features like time travel, allowing you to jump to specific past moves, undo, and redo actions.
- Classic Gameplay: Two players (X and O) take turns marking spaces in a 3×3 grid.
- Move History (Time Travel): See the list of past moves and jump to any specific turn in history.
- Undo / Redo / Reset: Instantly take back a move, redo a move, or reset the board completely.
- Component-Based Architecture: Separation of concerns using
Game,Board, andSquarecomponents. - Fast Development: Powered by Vite for blazing-fast Hot Module Replacement (HMR).
- React 19
- Vite
- CSS Modules for styling
- ESLint for code linting
- gh-pages (ready for GitHub Pages deployment)
- Navigate to the project directory:
cd Tic-Tac-Toe_game - Install dependencies:
npm install
- Start the development server:
The application will automatically open in your default browser.
npm run dev
To build the project for production:
npm run buildTo deploy the application to GitHub Pages (using the provided deploy script):
npm run deployCreated as a minimalistic, adaptive, and modern standard implementation of Tic-Tac-Toe.