FLUTTER ECOSYSTEM

mrgnhnt96/minesweeper

클래식 마인스위퍼를 명령줄용으로 재구성했습니다

마인스위퍼 프로젝트 이미지
Stars
15
Forks
0
최근 푸시(UTC)
2025. 12. 5.
프로젝트 상태
활성
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

관련 패키지 및 예제

사용 중인 의존성

의존성 목록 3 개

앱 카테고리

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Minesweeper

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

Requirements

  • Dart SDK >=3.9.0 <4.0.0

Installation

dart pub get

Usage

dart run

Controls

Key Action
Arrow Keys Move cursor
Space Reveal cell
F Flag/unflag cell
Enter Confirm selection

How to Play

  1. Select a difficulty level on the intro screen
  2. Navigate the grid using arrow keys
  3. Press Space to reveal a cell
  4. Press F to flag cells you suspect contain mines
  5. Reveal all non-mine cells to win
  6. Hit a mine and it's game over!

Project Structure

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

Dependencies