Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/saxocellphone/minehask
- Owner: saxocellphone
- License: bsd-3-clause
- Created: 2021-07-01T20:36:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-02T02:19:19.000Z (over 3 years ago)
- Last Synced: 2024-10-30T02:18:01.775Z (2 months ago)
- Topics: haskell, haskell-learning, minesweeper, monads
- Language: Haskell
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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