Skip to content

TMachon/Minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PySweeper, a python minesweeper

Description

Yet another Minesweeper terminal game, made with python, currently in 1.0

Sources

Todo

  • TUI with selectable individual cases
  • Mouse implementation in TUI
  • Bomb generation after the first click

Exemple

$ py minesweeper.py 
[?] Select difficulty: Novice
 > Novice
   Easy
   Medium
   Hard
   Impossible

[?] Select width (between 5 and 50): 5
[?] Select height (between 5 and 50): 5

    1   2   3   4   5  
  ┼───┼───┼───┼───┼───┤
 1│ □ │ □ │ □ │ □ │ □ │
  ┼───┼───┼───┼───┼───┤
 2│ □ │ □ │ □ │ □ │ □ │
  ┼───┼───┼───┼───┼───┤
 3│ □ │ □ │ □ │ □ │ □ │
  ┼───┼───┼───┼───┼───┤
 4│ □ │ □ │ □ │ □ │ □ │
  ┼───┼───┼───┼───┼───┤
 5│ □ │ □ │ □ │ □ │ □ │
  ┴───┴───┴───┴───┴───┘

[?] Select a row for your next move: 1
[?] Select a column for your next move: 1

    1   2   3   4   5  
  ┼───┼───┼───┼───┼───┤
 1│   │ 1 │ □ │ □ │ □ │
  ┼───┼───┼───┼───┼───┤
 2│   │ 1 │ □ │ □ │ □ │
  ┼───┼───┼───┼───┼───┤
 3│ 2 │ 2 │ □ │ □ │ □ │
  ┼───┼───┼───┼───┼───┤
 4│ □ │ □ │ □ │ □ │ □ │
  ┼───┼───┼───┼───┼───┤
 5│ □ │ □ │ □ │ □ │ □ │
  ┴───┴───┴───┴───┴───┘
[?] Select a row for your next move: 

Théo Machon 2020

Releases

No releases published

Packages

No packages published

Languages