v0.6.0
nocterm
一个类似 Flutter 的框架,用于使用组件、状态管理、动画等构建丰富的终端用户界面。
52喜欢 3.7万近 30 天下载150Pub 分数
AndroidiOSmacOSWindowsLinux
经典扫雷游戏重现于命令行界面
以下为英文项目原文快照,最新内容请访问 GitHub。
A classic Minesweeper game for the terminal, built with Dart and nocterm.
███╗ ███╗██╗███╗ ██╗███████╗███████╗
████╗ ████║██║████╗ ██║██╔════╝██╔════╝
██╔████╔██║██║██╔██╗ ██║█████╗ ███████╗
██║╚██╔╝██║██║██║╚██╗██║██╔══╝ ╚════██║
██║ ╚═╝ ██║██║██║ ╚████║███████╗███████║
╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚══════╝╚══════╝
Minesweeper
Minesweeper
Minesweeper
Minesweeper
## Features
Terminal-based UI with keyboard controls
Three difficulty levels:
| Difficulty | Grid Size | Mine Density |
|---|---|---|
| Easy | 9×9 | 12% |
| Medium | 16×16 | 24% |
| Hard | 24×24 | 36% |
Animated game over sequence
Flag system to mark suspected mines
>=3.9.0 <4.0.0dart pub get
dart run
| Key | Action |
|---|---|
| Arrow Keys | Move cursor |
| Space | Reveal cell |
| F | Flag/unflag cell |
| Enter | Confirm selection |
lib/
├── main.dart # Entry point
└── src/
├── app.dart # Root application component
├── models/ # Data models (Difficulty, Place, etc.)
├── provider/ # State management
└── screens/
├── intro/ # Difficulty selection screen
├── mine_sweeper/ # Main game screen
└── game_over/ # Game over screen