v0.6.0
nocterm
A Flutter-like framework for building rich terminal user interfaces with components, state management, animations, and more.
52Likes 36.5K30-day downloads150Pub points
AndroidiOSmacOSWindowsLinux
Classic Minesweeper recreated for the command line
A Flutter-like framework for building rich terminal user interfaces with components, state management, animations, and more.
A pluggable, mockable file system abstraction for Dart. Supports local file system access, as well as in-memory file systems, record-replay file systems, and chroot file systems.
English project snapshot. Visit GitHub for the latest content.
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