Cerito Cruz Vue 3 ๐ŸŽฎ

December 8, 2024 ยท View on GitHub

Tic Tac Toe Preview

Made with Vue TypeScript Tailwind CSS License PRs Welcome

A modern, elegant, and feature-rich Tic Tac Toe game built with Vue 3 + TypeScript

๐ŸŽฎ Play Now | ๐ŸŒŸ Features | ๐Ÿš€ Getting Started | ๐Ÿ› ๏ธ Tech Stack

โœจ Features

๐ŸŽฏ Core Gameplay

  • Modern Interface: Sleek, responsive design with smooth animations
  • Multiple Game Modes: Play against AI or challenge a friend locally
  • AI Difficulty Levels: Test your skills against different AI strategies
  • Theme System: Unlock beautiful themes as you play
  • Internationalization: Support for 7 languages
  • Statistics & Achievements: Track your progress and earn rewards
  • Sound Effects: Immersive audio feedback
  • Persistent Progress: Auto-save your achievements and stats
  • Easter Eggs: Discover hidden features and themes

๐Ÿค– AI Intelligence

๐ŸŒŸ Minimax Algorithm: The Strategic Mastermind

How It Works
  • ๐Ÿ” Explores ALL possible game outcomes
  • ๐Ÿ Predicts moves 3-9 steps ahead
  • โš–๏ธ Calculates best move by minimizing potential losses
  • ๐Ÿ›ก๏ธ Defends while seeking victory

๐Ÿšฆ Difficulty Levels: Intelligent Adaptation

DifficultyDepthStrategyChallenge
๐Ÿƒ Easy2-3 movesExploratoryBeginner-friendly
โšก Medium4-5 movesBalancedModerate challenge
๐Ÿ”ฅ HardUp to 9 movesNear-perfectExpert level

๐Ÿงฉ Strategic Scoring System

Key Evaluation Factors
  • ๐ŸŽฏ Center control (+15 points)
  • ๐Ÿ”บ Corner dominance (+10 points)
  • ๐Ÿ›ก๏ธ Blocking opponent's lines (+20 points)
  • ๐Ÿ† Potential winning moves (+25 points)

๐ŸŽจ Theme Collection

ThemeUnlock ConditionDescription
๐ŸŽจ DefaultAvailableClassic look
๐Ÿ’ซ NeonWin 3 games as XVibrant neon aesthetics
๐Ÿค– CyberpunkWin 3 games as OFuturistic design
๐ŸŒŒ GalaxyPlay 15 gamesSpace-inspired visuals
๐Ÿญ CandyWin 5 with each playerSweet color palette
๐ŸŒ… SunsetPlay 10 gamesWarm, gradient colors
๐ŸŒฟ NatureGet 3 drawsOrganic, earthy tones
๐ŸŽฎ KonamiSecret codeRetro gaming style
๐Ÿฆƒ ThanksgivingWin 5 vs AIAutumn festival theme
๐ŸŽƒ HalloweenWin 10 vs AISpooky aesthetics
๐ŸŽ„ ChristmasWin 15 vs AIHoliday celebration
๐ŸŒด TropicalWin 7 in EasyParadise vibes
โš”๏ธ MedievalWin 7 in MediumClassic kingdom style
๐Ÿš€ SpaceWin 7 in HardCosmic adventure

๐ŸŒ Supported Languages

  • ๐Ÿ‡บ๐Ÿ‡ธ English
  • ๐Ÿ‡ช๐Ÿ‡ธ Spanish
  • ๐Ÿ‡ซ๐Ÿ‡ท French
  • ๐Ÿ‡ฎ๐Ÿ‡น Italian
  • ๐Ÿ‡ฉ๐Ÿ‡ช German
  • ๐Ÿ‡ต๐Ÿ‡น Portuguese
  • ๐Ÿ›๏ธ Latin

๐Ÿ† Achievement System

Unlock achievements as you play:

  • ๐ŸŽฏ Game Mastery
    • X Master: Win 3 games as X
    • O Master: Win 3 games as O
    • Peacemaker: Achieve 3 draws
  • ๐Ÿ‘‘ Experience
    • Veteran: Play 10 games
    • Expert: Play 15 games
    • Balanced: Win 5 with each symbol
  • ๐Ÿค– AI Challenges
    • AI Shooter: Win 5 vs AI
    • AI Killer: Win 10 vs AI
    • AI Master: Win 15 vs AI
  • ๐ŸŽฎ Difficulty Conquests
    • Easy Peasy: Win 7 in Easy mode
    • Medium Breezy: Win 7 in Medium mode
    • Hard as Hell: Win 7 in Hard mode

๐Ÿ› ๏ธ Tech Stack

Frontend

Development

  • โšก Vite for blazing fast development
  • ๐Ÿ“ฆ NPM for package management
  • ๐ŸŽจ PostCSS for CSS processing
  • ๐Ÿ“ฑ Mobile-first responsive design

๐Ÿš€ Getting Started

Prerequisites

  • Node.js 16.0 or higher
  • NPM 7.0 or higher

Installation

# Clone the repository
git clone https://github.com/yourusername/tic-tac-toe-vue

# Navigate to project directory
cd tic-tac-toe-vue

# Install dependencies
npm install

# Start development server
npm run dev

Production Build

# Build for production
npm run build

# Preview production build
npm run preview

๐ŸŽฎ How to Play

  1. Choose your game mode (PVP or AI)
  2. Select difficulty (for AI mode)
  3. Pick your symbol (X or O)
  4. Take turns placing your symbol
  5. Get three in a row to win!
  6. Unlock new themes and achievements

๐Ÿค Contributing

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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“ License

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

๐Ÿ‘จโ€๐Ÿ’ป Author

Created with โค๏ธ by EduardoProfe666 ๐ŸŽฉ

๐Ÿ™ Acknowledgments

  • Thanks to all contributors
  • Inspired by classic Tic Tac Toe games
  • Built with modern web technologies