Skip to content

AminAzarpey/tic-tac-toe

Repository files navigation

Tic Tac Toe Game

A modern implementation of the classic Tic Tac Toe game built with React, TypeScript, and Tailwind CSS. Features include:

  • 🎮 Two game modes: Player vs Player (1v1) and Player vs Computer
  • 🌓 Dark/Light theme support
  • 🎨 Customizable color themes
  • 🌐 Multilingual support (English and Persian)
  • ⏱️ Game timer for each player
  • 📱 Fully responsive design
  • 🎯 Move history with undo functionality
  • 🎉 Victory animations with confetti

🚀 Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/tic-tac-toe.git
cd tic-tac-toe
  1. Install dependencies:
npm install
# or
yarn install
  1. Start the development server:
npm run dev
# or
yarn dev
  1. Open http://localhost:3000 in your browser.

🛠️ Built With

🎯 Features

  • Game Modes

    • 1v1: Play against another player
    • vs Computer: Play against AI
  • Theme Support

    • Light/Dark mode
    • Customizable color palettes
    • Responsive design for all devices
  • Game Features

    • Player timer
    • Move history
    • Undo moves
    • Victory animations
    • Game state persistence
  • Internationalization

    • English support
    • Persian support
    • RTL layout support

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

A fun Tic Tac Toe game I built in my free time with React and TypeScript. Play against a friend or the computer, with cool themes, undo moves, and a responsive design!

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors