A simple and responsive Tic-Tac-Toe game built with React, TypeScript Play the classic Xs and Os game in your browser with a clean and interactive UI.
tictactoe/ βββ public/ β βββ vite.svg βββ src/ β βββ assets/ β βββ App.tsx # Main game component β βββ Square.tsx # Individual square component β βββ main.tsx # Entry point β βββ App.css # Game-specific styling β βββ index.css # Global styles β βββ vite-env.d.ts # Vite TypeScript declarations βββ index.html βββ package.json βββ tsconfig.json βββ vite.config.ts
- React
- TypeScript
- CSS for styling
npm install
npm run dev
-Players alternate placing X or O on the 3x3 board. -The first to get 3 in a row (horizontally, vertically, or diagonally) wins. -If all cells are filled without a winner, it's a draw. -Refresh or use a "Restart" button (if implemented) to play again.
This project is licensed under the MIT License.