Skip to content

solcanine/claude-ai-mini-snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ Mini Snake Game

A modern, responsive snake game built with Claude AI - showcasing the power of AI-assisted development with vanilla JavaScript, HTML5 Canvas, and CSS. Features beautiful gradients, smooth animations, and full mobile support!

Email Telegram Twitter

๐Ÿค– Built entirely with Claude AI - This project demonstrates how AI can help create fully functional, production-ready web games from scratch!

๐ŸŽฎ Play Now

Live Demo: https://minisnake.vercel.app/

โœจ Features

  • ๐Ÿค– 100% AI-Generated - Built entirely with Claude AI
  • ๐ŸŽฎ Classic snake gameplay with smooth controls
  • ๐ŸŽ Special Foods System - 5 different food types with unique effects!
    • ๐ŸŽ Normal Apple - 1 point (70% spawn rate)
    • ๐ŸŒŸ Golden Apple - 5 points (15% spawn rate)
    • ๐Ÿ’Ž Diamond - 10 points! (5% spawn rate - rare!)
    • โšก Speed Boost - Faster for 5 seconds (6% spawn rate)
    • ๐ŸŒ Slow Motion - Slower for 5 seconds (4% spawn rate)
  • โœจ Particle Effects - Colorful burst animations when eating food
  • ๐ŸŽฌ Smooth Animations - Food spawn animation & death fade effect
  • ๐Ÿ“Š Animated Score Counter - Score smoothly counts up
  • โธ๏ธ Pause Functionality - Press SPACE to pause/resume
  • ๐Ÿ“ฑ Fully mobile responsive (swipe & on-screen controls)
  • ๐Ÿ† High score tracking with localStorage
  • โšก Progressive difficulty - speed increases as you score
  • ๐Ÿ’Ž Beautiful UI with glassmorphism effects
  • ๐ŸŒˆ Animated Background - Dynamic gradient with floating particles
  • โšก Zero dependencies - Pure vanilla JavaScript

๐ŸŽฏ How to Play

Objective: Eat the red food to grow while avoiding walls and yourself!

Controls:

  • Desktop: Arrow keys (โ†‘ โ†“ โ† โ†’) | SPACE to pause
  • Mobile: Swipe gestures or tap D-pad buttons

Rules:

  • โœ… Eat food to score points and grow
  • ๐ŸŒŸ Look for special foods for bonus points and power-ups!
  • โŒ Don't hit walls or yourself
  • ๐Ÿ“ˆ Speed increases every 5 points
  • โธ๏ธ Pause anytime with SPACE key

Special Foods:

  • ๐ŸŽ Red Apple = 1 point (common)
  • ๐ŸŒŸ Golden Apple = 5 points (uncommon)
  • ๐Ÿ’Ž Diamond = 10 points (rare!)
  • โšก Speed Boost = Temporary speed increase
  • ๐ŸŒ Slow Motion = Easier control for 5 seconds

๐Ÿš€ Quick Start

Option 1: Play Online Visit https://minisnake.vercel.app/

Option 2: Run Locally

# Clone the repository
git clone https://github.com/solcanine/claude-ai-mini-snake-game.git

# Open index.html in your browser
# Or use a local server:
python -m http.server 8000

๐Ÿ› ๏ธ Tech Stack

  • ๐Ÿค– Claude AI - AI-assisted development
  • HTML5 Canvas - Game rendering
  • CSS3 - Styling and animations
  • Vanilla JavaScript - Game logic
  • No dependencies - Pure web technologies
  • Vercel - Deployment platform

๐Ÿ“ฑ Browser Support

  • โœ… Chrome, Firefox, Safari, Edge
  • โœ… iOS Safari & Android Chrome
  • โœ… Responsive design (mobile, tablet, desktop)

๐Ÿค– Built with Claude AI

This entire game was created through a conversation with Claude AI (Anthropic's AI assistant), demonstrating:

  • โœจ AI-Powered Development - Complete game logic, UI/UX, and responsive design
  • ๐ŸŽจ Iterative Design - Real-time feedback and improvements
  • ๐Ÿ› Bug Fixes - Instant debugging and optimization
  • ๐Ÿ“ฑ Mobile Optimization - Responsive design and touch controls
  • ๐Ÿ’ก Best Practices - Clean code, no dependencies, single-file architecture

This project showcases how Claude AI can help developers build production-ready applications quickly and efficiently!


Created with โค๏ธ by Claude AI

Enjoy the game! ๐Ÿโœจ

About

๐Ÿ AI-powered Snake Game built entirely with Claude AI. Fully responsive with touch controls. Pure vanilla JavaScript!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages