Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevin-hanselman/mines
A minesweeper clone in the terminal, written in Elixir.
https://github.com/kevin-hanselman/mines
elixir game minesweeper-cli minesweeper-game
Last synced: 3 months ago
JSON representation
A minesweeper clone in the terminal, written in Elixir.
- Host: GitHub
- URL: https://github.com/kevin-hanselman/mines
- Owner: kevin-hanselman
- License: mit
- Created: 2016-05-06T21:34:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-05T03:23:24.000Z (over 7 years ago)
- Last Synced: 2024-04-22T13:33:32.464Z (9 months ago)
- Topics: elixir, game, minesweeper-cli, minesweeper-game
- Language: Elixir
- Size: 17.6 KB
- Stars: 45
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - A minesweeper clone in the terminal. (Games)
- awesome-elixir-gaming - Mines: Pure Elixir minesweeper clone for terminal
- awesome-elixir-gaming - Mines: Pure Elixir minesweeper clone for terminal
README
# Mines
A minesweeper clone in the terminal, written in Elixir.
![Screenshot](screenshot.png)
I built this to learn Elixir and as an exercise in test-driven development.
## Build
Mines is meant to be run as a standalone BEAM executable:
mix escript.build
## Play
To play the game with default settings, run:
./mines
Currently, you can also pass two arguments to the game:
./mines --size 10 --mines 12
### Controls
* The arrow keys move the cursor. The cursor wraps around the edges of the board.
* The space bar reveals a cell.
* The 'b' key toggles marking a cell as a bomb.
* Control-C exits the game. (You'll probably need to call `reset` afterwards.)