Module: Minehunter

Defined in:
lib/minehunter.rb,
lib/minehunter/cli.rb,
lib/minehunter/game.rb,
lib/minehunter/grid.rb,
lib/minehunter/field.rb,
lib/minehunter/intro.rb,
lib/minehunter/version.rb

Defined Under Namespace

Classes: CLI, Error, Field, Game, Grid, Intro

Constant Summary collapse

DEFAULT_DECORATOR =

Apply no styling

->(str, *_colors) { str }
GENERATOR =

Random number generator

Random.new
DEFAULT_RANDOMISER =

Generate random number less than max

->(max) { GENERATOR.rand(max) }
VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.runObject

Start the game



20
21
22
# File 'lib/minehunter.rb', line 20

def self.run
  CLI.new.run
end