Skip to content

saxocellphone/minehask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minehask - CLI Minesweeper written in haskell

To play

stack build
stack exec -- minehask-exe <width> <height> <numMines>

Demo

Make a move: (Format Int Int)
5 3
------------------
. . . . . 1
. . . . . 1
. 2 1 2 1 1 1 1 1
1 1         1 . .
      1 1 1 1 1 .
    1 2 . 1   1 .
    1 . . 1   1 .
  1 2 . . 2 2 2 .
  1 . . . . . . .
------------------
Make a move: (Format Int Int)
1 1
------------------
  1 . . . 1
1 2 . . . 1
. 2 1 2 1 1 1 1 1
1 1         1 . .
      1 1 1 1 1 .
    1 2 . 1   1 .
    1 . . 1   1 .
  1 2 . . 2 2 2 .
  1 . . . . . . .
------------------
Make a move: (Format Int Int)
2 3
"You Lost :("
------------------
  1 1 2 1 1
1 2 x 2 x 1
x 2 1 2 1 1 1 1 1
1 1         1 x 1
      1 1 1 1 1 1
    1 2 x 1   1 1
    1 x 2 1   1 x
  1 2 2 2 2 2 2 1
  1 x 1 1 x x 1
------------------

TODOs

  • Safe parse input
  • Row/Col numbers
  • Flags
  • GUI

Releases

No releases published

Packages

No packages published