๐ฎ OG Snake Game + ๐งฎ Algorithm Visualizations = ๐ Mind-Bending Fun!
SNALGO is what you get when the classic Snake game collides with computer science. It's part fun, part learning, and all pixels. ๐
- ๐ Classic snake mechanics with a modern twist
- ๐ฏ Real-time algorithm visualization (TSP, Knapsack)
- ๐ Stunning retro-futuristic UI with pixel-perfect animations
- ๐ต Immersive sound effects and background music
- ๐ฑ Fully responsive design with mobile controls
- ๐ Global leaderboard system
- ๐ Collectible system with inventory management
- ๐ Level progression with increasing complexity
- Next.js 15.2.1 - React framework with App Router
- TypeScript - Type-safe development
- Zustand - State management with zero drama
- React Query (@tanstack/react-query) - Server state management
- Tailwind CSS 4.0.9 - Utility-first styling
- Radix UI - Headless UI components
- Framer Motion - Smooth animations
- Lucide React - Beautiful icons
- Sonner - Toast notifications
- class-variance-authority - UI variants
- clsx & tailwind-merge - Class utilities
- Howler.js - Audio management
- Recharts - Data visualization
- Embla Carousel - Touch-friendly carousels
- React Hook Form - Form management
- Zod - Schema validation
- input-otp - OTP input fields
- Supabase - Backend as a Service
- Real-time leaderboard updates
- User authentication and profiles
- PostgreSQL database with row-level security
- PostgreSQL - Advanced SQL database features
- Complex leaderboard queries
- JSON storage for game states
- Full-text search capabilities
- UUID - Unique identifiers
- ESLint - Code linting
- Next Themes - Dark mode support
- React Dev Tools - Development tooling
-
Clone and Install
git clone <your-repo-url> cd snalgo npm install
-
Fire up the Development Server
npm run dev
-
Open http://localhost:3000 Get ready to be amazed! ๐
- โฌ๏ธ โฌ๏ธ โฌ ๏ธ โก๏ธ Arrow keys for movement
- H Toggle path optimization
- Mobile: Touch controls with visual feedback
- Traveling Salesman (TSP) - Path optimization
- Knapsack Problem - Inventory management
- Bubble Sort - Inventory sorting
- Linear Search - Item finding
SNALGO combines retro gaming aesthetics with modern UI principles:
- Pixel-perfect animations
- Neon-infused color palette
- Responsive grid system
- Immersive sound design
- Cyberpunk-inspired visuals
graph TD
A[App Layer] --> B[Game Core]
B --> C[Algorithm Visualizations]
B --> D[State Management]
D --> E[Zustand Store]
D --> F[React Query]
B --> G[UI Components]
G --> H[Radix UI]
G --> I[Custom Components]
Got ideas? Found a bug? Let's make SNALGO even better!
- Fork it
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
MIT - Go wild! Just remember to give credit where it's due. ๐
- Built with โค๏ธ using Next.js and an unhealthy amount of coffee โ