Code Eater

A developer-themed Snake game. Eat variables, functions, and arrays to grow your codebase. Avoid bugs, memory leaks, and infinite loops.

πŸ“…

Food: eat them!

  • xvariable+1 segment
  • fn()function+2 segments
  • []array+3 segments
  • {}object+2 segments
  • β˜•coffeespeed boost 4s
  • πŸ’‘stackoverflowinvincible 3s
  • βœ…test passedscore x2

Hazards: avoid them!

  • πŸ›buggame over
  • πŸ’§memory leaklose segments
  • πŸ”„infinite loopslow down
  • ⚠️deprecatedinvert controls
  • πŸ’₯500 errorfreeze 1s
Your best score0

What is Code Eater?

Code Eater (DevSnake) is a developer-themed reimagining of the classic Snake game. Instead of eating dots, you grow your codebase by consuming variables, functions, and arrays. But watch out: bugs, memory leaks, infinite loops, and deprecated warnings lurk around every corner, ready to crash your program.

Built with the HTML5 Canvas API and running entirely in the browser, Code Eater needs no install or signup. Just open it and start coding… or eating code.

What to eat, what to avoid

  • Eat: variables, functions, arrays, objects: each one grows your snake and boosts your score.
  • Avoid: bugs, memory leaks, infinite loops, deprecated warnings: any collision ends your session.
  • Speed scaling: The more code you consume, the faster your snake moves, keeping experienced players challenged. Coffee gives a temporary boost and an infinite loop slows you down.

How to play Code Eater

  1. Press Space, click or tap the board to begin your coding session.
  2. Use arrow keys or WASD to navigate the snake.
  3. Eat code items to grow your snake and increase your score.
  4. Avoid crashing into walls, yourself, or the lurking bugs.
  5. Beat your high score and challenge other developers.

Whether you're taking a break from a refactor or just want to relive the nostalgia of classic Snake with a developer twist, Code Eater is the perfect in-browser game for programmers of all levels.

Frequently Asked Questions

How do I control Code Eater?

Press Space, click or tap the board to start, then steer with the arrow keys or WASD on desktop, or swipe in the direction you want on a touch screen. The snake cannot reverse into itself.

What should I eat and what should I avoid?

Variables, functions, arrays and objects grow the snake by 1 to 3 segments and score 10 points per segment. Coffee gives a 4 second speed boost, the light bulb makes you invincible for 3 seconds and the green check doubles your score for 5 seconds. Bugs end the game, memory leaks shrink the snake, infinite loops slow it down, deprecated warnings invert the controls and a 500 error freezes you for a second.

Why does the snake get faster?

The tick interval shortens by 6 milliseconds for every 60 points, down to a floor just above the coffee speed, so a long run stays challenging. Hitting a wall or your own body ends the run unless you are invincible.

Is my best score saved?

Yes, the best score lives in your browser localStorage on the device you play on. There is no account and nothing is uploaded.