🎯 A fun and engaging tic-tac-toe game widget for Visual Studio Code! Perfect for taking a quick break while waiting for AI responses or during coding sessions.
✨ Features
🎮 Complete Gaming Experience
Beautiful Interface - Seamlessly integrated with VS Code themes
Responsive Design - Adapts to different window sizes
Real-time Updates - Live game status and turn indicators
Winning Animations - Highlighted winning lines with pulsing effects
AI Thinking Indicator - Visual feedback when AI is making moves
🤖 Intelligent AI Opponents
🟢 Easy - Random moves for casual play
🟡 Normal - Basic strategy with defensive moves
🟠 Hard - Advanced tactics and strategic positioning
🔴 Very Hard - Unbeatable Minimax algorithm implementation
📊 Statistics & Progress
Persistent Stats - Win/Loss/Draw records saved automatically
Real-time Updates - Live score tracking during gameplay
Visual Dashboard - Clean statistics panel with color-coded results
⚙️ Customization Options
Difficulty Selection - Four AI difficulty levels
Auto-show Settings - Configure automatic game display on startup
Persistent Preferences - Settings saved between sessions
🚀 How to Use
Install the extension from the VS Code Marketplace
Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
Search for "Show Tic Tac Toe Game"
Start Playing! The game opens in a side panel
🎲 Gameplay
You play as X, AI plays as O
Click any empty cell to make your move
Try to get three in a row (horizontally, vertically, or diagonally)
Challenge yourself with higher difficulty levels!
⚡ Quick Start
The extension automatically activates when you run the "Show Tic Tac Toe Game" command. You can also configure it to auto-show on startup in the settings.
🛠️ Configuration
Access settings via File > Preferences > Settings and search for "Tic Tac Toe":
ticTacToe.autoShow - Automatically show game on startup (default: true)
ticTacToe.defaultDifficulty - Default AI difficulty level (default: normal)
🎯 Why Tic Tac Toe for VS Code?
Perfect for:
Quick breaks during long coding sessions
Mental refresher while waiting for builds or AI responses
Stress relief during debugging sessions
Brain training with challenging AI opponents
🔧 Technical Details
Built with TypeScript for type safety and reliability
Minimax Algorithm implementation for Very Hard difficulty
VS Code Native APIs for seamless integration
Persistent Storage using VS Code's global state
Responsive Design that adapts to VS Code themes
📈 Difficulty Levels Explained
Easy: AI makes random moves - great for beginners or quick wins
Normal: AI uses basic strategy - blocks obvious wins and takes winning moves
Hard: Advanced AI with strategic positioning and threat analysis
Very Hard: Perfect play using Minimax algorithm - extremely challenging!
🐛 Issues & Feedback
Found a bug or have a feature request? Please visit our GitHub repository to report issues or suggest improvements.
📄 License
This extension is licensed under the MIT License.
🎉 Enjoy!
Have fun playing Tic Tac Toe right in your favorite code editor! Whether you're taking a quick break or challenging yourself with the AI, this extension brings a classic game to your development environment.