A modern, responsive Tic-Tac-Toe game built with React, TypeScript, and TailwindCSS.
This project demonstrates the capabilities of AI code generation using Cursor. Below is a demonstration of how Cursor Agent helped develop this application:
The AI assistant helped with:
- Setting up the React TypeScript project structure
- Implementing game logic and AI opponent
- Creating responsive UI components with TailwindCSS
- Resolving grid styling and layout challenges
- Implementing accessibility features
- Writing comprehensive tests
- Fixing compilation errors and styling issues
- Customizable grid size (3x3, 4x4, or 5x5)
- Play against an AI opponent
- Responsive design for all device sizes
- Smooth animations and modern UI
- Accessibility features
- Node.js (v14 or higher)
- npm or yarn
- Clone the repository:
git clone https://github.com/yourusername/tic-tac-toe.git
cd tic-tac-toe- Generate package-lock.json:
npm install --package-lock-only- Start the development server:
npm start
# or
yarn start- Open http://localhost:3000 in your browser.
- Build and run with Docker Compose:
docker-compose up -d --build- Access the application at http://localhost:3000
- The game is played on a grid of size 3x3, 4x4, or 5x5 (selectable before starting)
- Players take turns placing their marks (X or O) in empty squares
- The first player to get n marks in a row (horizontally, vertically, or diagonally) wins
- If all squares are filled and no player has won, the game is a draw
- React
- TypeScript
- TailwindCSS
- Docker
- Nginx
This project is licensed under the MIT License - see the LICENSE file for details.

