Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saxocellphone/minehask

Minesweeper written haskell
https://github.com/saxocellphone/minehask

haskell haskell-learning minesweeper monads

Last synced: 22 days ago
JSON representation

Minesweeper written haskell

Awesome Lists containing this project

README

        

# Minehask - CLI Minesweeper written in haskell

## To play
```
stack build
stack exec -- minehask-exe
```
## 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