Skip to content

A minesweeper clone in the terminal, written in Elixir.

License

Notifications You must be signed in to change notification settings

kevin-hanselman/mines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mines

A minesweeper clone in the terminal, written in Elixir.

Screenshot

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

About

A minesweeper clone in the terminal, written in Elixir.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages