๐Ÿ Snake

December 23, 2025 ยท View on GitHub

A classic Snake game for the terminal, built with Dart and nocterm.

  โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ                         โ–‘โ–ˆโ–ˆ
 โ–‘โ–ˆโ–ˆ   โ–‘โ–ˆโ–ˆ                        โ–‘โ–ˆโ–ˆ
โ–‘โ–ˆโ–ˆ         โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ   โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ   โ–‘โ–ˆโ–ˆ    โ–‘โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
 โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆ    โ–‘โ–ˆโ–ˆ       โ–‘โ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆ   โ–‘โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆ    โ–‘โ–ˆโ–ˆ
        โ–‘โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆ    โ–‘โ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
 โ–‘โ–ˆโ–ˆ   โ–‘โ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆ    โ–‘โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆ   โ–‘โ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆ   โ–‘โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆ
  โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ   โ–‘โ–ˆโ–ˆ    โ–‘โ–ˆโ–ˆ  โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆ    โ–‘โ–ˆโ–ˆ โ–‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ

Menu Game Game Over

Getting Started

Prerequisites

  • Dart SDK >=3.9.0 <4.0.0

Run the Game

dart run

How to Play

  1. Select a difficulty using the arrow keys and press Enter
  2. Control the snake with the arrow keys:
    • โ†‘ Move up
    • โ†“ Move down
    • โ† Move left
    • โ†’ Move right
  3. Eat the food to grow and score points
  4. Avoid running into yourself!

Difficulty Levels

DifficultyGrid SizeSpeed
Easy10ร—10Slow
Medium15ร—15Medium
Hard20ร—20Fast