A simple React-based Tic Tac Toe game built with Vite. The game supports two players or lets you play against the computer (easy, medium, hard). Displays the current player's turn, and shows the winner or a draw at the end. Built using functional components and React hooks.
- Two-player mode (X and O)
- Play against the computer (Easy, Medium, Hard)
- Choose your symbol (X or O) in computer mode
- Displays current player's turn
- Detects and displays winner or draw
- Simple and modern UI
- Restart game button
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open http://localhost:5173 in your browser to play.
src/App.jsx: Main game logic and UIsrc/App.css: Game styles
Feel free to modify the styles or logic to add more features!