Cerito Cruz Vue 3 ๐ฎ
December 8, 2024 ยท View on GitHub

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
| Difficulty | Depth | Strategy | Challenge |
|---|---|---|---|
๐ Easy | 2-3 moves | Exploratory | Beginner-friendly |
โก Medium | 4-5 moves | Balanced | Moderate challenge |
๐ฅ Hard | Up to 9 moves | Near-perfect | Expert 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
| Theme | Unlock Condition | Description |
|---|---|---|
| ๐จ Default | Available | Classic look |
| ๐ซ Neon | Win 3 games as X | Vibrant neon aesthetics |
| ๐ค Cyberpunk | Win 3 games as O | Futuristic design |
| ๐ Galaxy | Play 15 games | Space-inspired visuals |
| ๐ญ Candy | Win 5 with each player | Sweet color palette |
| ๐ Sunset | Play 10 games | Warm, gradient colors |
| ๐ฟ Nature | Get 3 draws | Organic, earthy tones |
| ๐ฎ Konami | Secret code | Retro gaming style |
| ๐ฆ Thanksgiving | Win 5 vs AI | Autumn festival theme |
| ๐ Halloween | Win 10 vs AI | Spooky aesthetics |
| ๐ Christmas | Win 15 vs AI | Holiday celebration |
| ๐ด Tropical | Win 7 in Easy | Paradise vibes |
| โ๏ธ Medieval | Win 7 in Medium | Classic kingdom style |
| ๐ Space | Win 7 in Hard | Cosmic 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
- โก Vue 3 with Composition API
- ๐ TypeScript
- ๐จ Tailwind CSS
- ๐ Pinia for state management
- ๐พ pinia-plugin-persistedstate
- โจ GSAP for animations
- ๐ Howler.js for sound system
- ๐ Vue I18n for internationalization
- ๐ญ HeadlessUI for accessible components
- ๐ฏ VueUse for composition utilities
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
- Choose your game mode (PVP or AI)
- Select difficulty (for AI mode)
- Pick your symbol (X or O)
- Take turns placing your symbol
- Get three in a row to win!
- Unlock new themes and achievements
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - 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