0.0
No commit activity in last 3 years
No release in over 3 years
A command line, text/emoji minesweeper implementation in Ruby!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.13
~> 10.0
~> 3.0
 Project Readme

A minimalistic Ruby implementation for the classic minesweeper game.

In case you don't know, the objective is to reveal the content of all the squares without a mine.

Installation

It comes conveniently packaged as a gem:

gem install minesweeper-cli

How to launch the game

From the command line:

minesweeper

To get some help and options:

minesweeper -h

By default it's a 10x5 grid, with 3 hidden mines.

How to play

Enter the position of the square you want to reveal, by typing the coordinates Y and X. Eg:

2,3

…and press enter.

The origin 0, 0 is at the leftmost top corner, marked in the diagram below as O. And 2, 3 would be the square marked as X:

O....
.....
...X.
.....

The game ends either once you reveal all the squares, or hit a mine. In any case, the program ends and you'll be notified in Engrish.