A modern implementation of the classic Tic-Tac-Toe game built with React, TypeScript, and Vite. Features a clean, responsive design with dark/light theme support.
- 🎮 Classic Tic-Tac-Toe gameplay
- 🌓 Dark/Light theme toggle
- 🎨 Modern, responsive UI
- ⚡ Built with React + TypeScript
- 🎯 Win detection
- 🔄 Game reset functionality
- 💫 Smooth animations and transitions
- React 18+
- TypeScript 5+
- Vite 4+
- CSS Modules
Before you begin, ensure you have met the following requirements:
- Node.js v16 or higher
- npm v8 or higher or yarn v1.22+
- Git (for version control)
To check your installed versions, run:
node --version
npm --version
git --versionFollow these steps to set up the project locally:
Clone the repository:
git clone https://github.com/yourusername/tic-tac-toe.git
cd tic-tac-toeUsing npm:
npm install
Or using yarn:yarnConfigure environment variables (if needed):
Create a .env file in the root directory:
touch .envAdd any required environment variables (the project may work without any by default).
Running the Development Server To start the development server, run:
npm run dev
# or
yarn devThis will start the Vite development server. You should see output similar to:
VITE v4.4.9 ready in 456 ms➜ Local: http://localhost:5173/ ➜ Network: use --host to expose Open http://localhost:5173 in your browser to view the application.