GoShip
How It WorksChallengesPricingEmployers
Sign InGet Started
0developers
0companies
0assessments scored
How It Works
|Pricing
|Challenges
|Employers
|Privacy
|Terms
GoShip© 2026
Get updates
Twitter·GitHub
Systems nominal
BUILDMID

Build Snake with an AI Opponent

60 minutes
0 completed
canvasgameai-pathfindingtypescript

Description

Build Snake with an AI Opponent

Build the classic Snake game with a twist: an AI-controlled snake competes against you for food.

Requirements

  • Classic snake mechanics: grow when eating food, die on wall/self collision
  • AI snake that pathfinds to food using A* or BFS
  • Both snakes compete for the same food items
  • Score tracking for both player and AI
  • Increasing difficulty: snakes speed up as they grow
  • Game over screen with replay option
  • Keyboard controls (WASD or arrow keys)
  • Technical Notes

    Use Canvas for rendering. Update game state on a fixed tick interval. AI pathfinding should avoid both snakes' bodies.

    Bonus Points

  • AI difficulty settings (easy: random, hard: A*)
  • Power-ups (speed boost, ghost mode, score multiplier)
  • 2-player mode (WASD + arrows)
  • You will be guided through MCP setup before the timer starts