FLUTTER ECOSYSTEM

mrgnhnt96/snake

经典贪吃蛇重现于命令行

蛇 项目封面
Stars
5
Forks
0
最近推送(UTC)
2025年12月23日
项目状态
未归档
Morgan Hunt GitHub avatar
GITHUB User

Morgan Hunt ↗

Flutter, Fluttering, Fluttered Blue heart · Avid coder Man technologist · Biggest freaking Legend of Zelda fan 🗡

Mesa, AZ USA
语言Dart

关联插件与示例

使用的依赖

依赖清单 5 项
  • file^7.0.1
  • nocterm0.1.0
  • scoped_deps^0.1.0+2
  • nocterm_provider
  • nocterm_cli开发依赖

App 分类

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

🐍 Snake

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

Difficulty Grid Size Speed
Easy 10×10 Slow
Medium 15×15 Medium
Hard 20×20 Fast