A modern Tic Tac Toe game built with React, TypeScript, Vite, and Tailwind CSS.
- Play classic Tic Tac Toe (X vs O)
- Edit player names
- Move history with time travel (browse and jump to any move)
- Winner detection and animated overlay
- Responsive, clean UI styled with Tailwind CSS
-
Clone the repository:
git clone https://github.com/your-username/tictactoe.git cd tictactoe -
Install dependencies:
npm install # or yarn install
Start the development server:
npm run dev
# or
yarn devOpen http://localhost:5173 in your browser.
npm run buildnpm run lintYou can also run this app in a Docker container:
-
Build the Docker image:
docker build -t tictactoe-app . -
Run the container:
docker run -p 5173:5173 tictactoe-app
Then open http://localhost:5173 in your browser.
- Edit player names by clicking "Edit" next to each player.
- Browse move history using the "Browse Moves" button after a game ends.
MIT
Made with ❤️ using React and TypeScript.