A beautiful, modern Tic Tac Toe game built with React and TypeScript. Features a responsive design with smooth animations and a clean user interface.
- 🎮 Fully Functional Game: Complete tic-tac-toe gameplay with win detection
- 🎨 Modern UI: Beautiful gradient design with smooth animations
- 📱 Responsive: Works perfectly on desktop, tablet, and mobile devices
- ⚡ Fast & Smooth: Optimized performance with React hooks
- 🏆 Win Detection: Automatically detects winning combinations and draws
- 🔄 Reset Game: Easy restart functionality
- 🎯 Visual Feedback: Winning squares are highlighted with animations
- Start the Game: Run npm startto launch the game
- Take Turns: Players X and O take turns clicking on empty squares
- Win Condition: Get three of your marks in a row (horizontally, vertically, or diagonally)
- Draw: If all squares are filled without a winner, the game is a draw
- New Game: Click "New Game" to start over
- Player X always goes first
- Players alternate turns
- Click on any empty square to place your mark
- First player to get three marks in a row wins
- If all squares are filled without a winner, it's a draw
In the project directory, you can run:
Runs the game in development mode.
Open http://localhost:3000 to play in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the game for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your game is ready to be deployed!
Note: this is a one-way operation. Once you eject, you can't go back!
If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.
- React 19: Modern React with hooks
- TypeScript: Type-safe development
- CSS3: Modern styling with gradients and animations
- Create React App: Development environment
To learn React, check out the React documentation.
To learn TypeScript, visit the TypeScript documentation.