Skip to content

A modern and interactive touch on the classic Tic-Tac-Toe game. Built with React & TypeScript.

License

Notifications You must be signed in to change notification settings

basrihsn/tic-tac-toe

Repository files navigation

🎮 Tic Tac Toe with TypeScript

Welcome to our delightful Tic Tac Toe game! This modern twist on the classic game is built with React and TypeScript, offering an engaging gaming experience with festive surprises. 🎉

✨ Features

  • 🎯 Multiple Game Modes
    • 🏃‍♂️ Single Player Practice - Perfect for learning
    • 👥 Player vs Player - Challenge your friends
    • 🤖 Player vs Computer - Test your skills
  • 🎨 Interactive Experience
    • 🏆 Real-time game status updates
    • 🎊 Victory celebrations with confetti
    • ❄️ Charming snowmen animations
    • 🎆 Special New Year countdown
  • 📱 Responsive Design
    • Works beautifully on all devices
    • Smooth animations and transitions

🚀 Getting Started

Prerequisites

  • Node.js (v14 or higher) 📦
  • npm or yarn package manager 🔧

Installation

  1. Clone the repository:

    git clone [your-repository-url]
  2. Navigate to the project directory:

    cd tic-tac-toe
  3. Install dependencies:

    npm install
    # or
    yarn install
  4. Start the development server:

    npm start
    # or
    yarn start
  5. Open your browser and visit:

    http://localhost:3000
    

🎯 How to Play

  1. 🎮 Choose your game mode
  2. 👤 Enter player names (optional)
  3. ⭕ Select your symbol (X or O)
  4. 🎲 Take turns placing your symbol
  5. 🏆 Get three in a row to win!

🛠️ Built With

  • ⚛️ React 18 - Modern UI framework
  • 📘 TypeScript - Type-safe JavaScript
  • 🎨 CSS Animations - Smooth visual effects
  • 🎊 Canvas Confetti - Victory celebrations

📝 Game Rules

  1. The game is played on a 3x3 grid
  2. Players take turns marking empty squares
  3. First player to get 3 in a row (horizontal, vertical, or diagonal) wins
  4. If all squares are filled with no winner, it's a draw

🌟 Tips & Tricks

  • 💡 Corner squares are strategically valuable
  • 🤔 Plan two moves ahead
  • 🛡️ Block your opponent's winning moves
  • 🎯 Try to create multiple winning opportunities

🤝 Contributing

We welcome contributions! Feel free to:

  • 🐛 Report bugs
  • 💡 Suggest new features
  • 🔧 Submit pull requests

📫 Support

Having issues? We're here to help!

  • 📧 Create an issue in the repository
  • 💬 Check existing issues for solutions

Enjoy playing! 🎮✨

About

A modern and interactive touch on the classic Tic-Tac-Toe game. Built with React & TypeScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published