v0.6.0
nocterm
コンポーネント、状態管理、アニメーションなどを使用して、豊かなターミナルユーザーインターフェースを構築する、Flutterに似たフレームワーク。
52いいね 3.7万30日間ダウンロード150Pub ポイント
AndroidiOSmacOSWindowsLinux
クラシックなマインスイーパーがコマンドライン用に再作成されました
コンポーネント、状態管理、アニメーションなどを使用して、豊かなターミナルユーザーインターフェースを構築する、Flutterに似たフレームワーク。
Dart用のプラグ可能な、モック可能なファイルシステム抽象。ローカルファイルシステムアクセスに加えて、メモリ内ファイルシステム、レコード・リプレイファイルシステム、およびchrootファイルシステムもサポートしています。
以下は英語原文のスナップショットです。最新版は 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