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: about 2 months ago
JSON representation

A minesweeper clone in the terminal, written in Elixir.

Lists

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.)