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

About

PySweeper, a python minesweeper

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages