A modern web implementation of the Tango puzzle game featuring a FastAPI backend and Svelte frontend with Tailwind CSS, enhanced with intelligent puzzle generation and inference-based solving.
Tango is a 6x6 grid logic puzzle game where you place suns (☀) and moons (☽) following specific rules, similar to Sudoku but with unique constraints. The game emphasizes logical deduction and pattern recognition.
- Balance Rule: Each row and column must contain exactly 3 suns and 3 moons
- Consecutive Rule: No three consecutive identical pieces are allowed in any row or column
- × constraint between tiles means they must contain different pieces
- = constraint between tiles means they must contain the same piece
- Click tiles to cycle through: Empty → ☀ → ☽ → Empty
- New Game button generates a fresh puzzle with intelligent constraint optimization
- Hint System provides educational explanations based on game rules
- Real-time validation shows rule violations with detailed feedback
- Timer tracks your solving speed
- Leaderboard displays best completion times
cd frontend
npm install
npm run devThen open the local browser that starts to play.
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a pull request
MIT License - see LICENSE file for details.
Based on the Tango puzzle game concept, implemented as a modern web application with enhanced features, intelligent puzzle generation, and educational hint systems.