Snake (grid-based)
Use the arrow keys or WASD to move. Eat the blue food blocks to grow. Hitting a wall or your own tail will reset the game.
Play
Built the same way I build lab tools: simple, self-contained, and running entirely in your browser. Use it as a break between labs or as a starter example for canvas-based games.
Use the arrow keys or WASD to move. Eat the blue food blocks to grow. Hitting a wall or your own tail will reset the game.
This page keeps the same layout, typography, and color system as the rest of the site. Under the hood, the game uses:
setTimeout for timing.If you ever want to extend this, ideas include: pause/resume, walls that appear over time, or multiple speed presets.