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
-
.run ⇒ Object
Start the game.