No commit activity in last 3 years
No release in over 3 years
This gem defines the core classes of a minesweeper game such as Minefield, Cell, and Mine.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
>= 0
>= 0
~> 10.0
 Project Readme

Build Status Coverage Status

Minesweeper

The rules of the minesweeper game are explained there: http://en.wikipedia.org/wiki/Minesweeper_(video_game).

This repository contains a ruby gem that defines the core concepts of a 2D minesweeper game: minefield, cells, mines and the user interactions with the minefield (reveal, flag, unflag).

Therefore, this gem is not a playable version of the game but if you want to try it, I also built a terminal frontend which uses it.

Install

spec.add_runtime_dependencty "minesweeper-core", "~> 2.0.0"

Usage

An example of the usage of this library can be found in my terminal based implementation of this game: svarlet/minesweeper-console.