Class: MineSweeper::Game
- Inherits:
-
Object
- Object
- MineSweeper::Game
- Defined in:
- lib/mine-sweeper.rb,
lib/mine-sweeper/game_helper.rb
Instance Method Summary collapse
-
#initialize ⇒ Game
constructor
A new instance of Game.
Constructor Details
#initialize ⇒ Game
9 10 11 12 13 14 15 16 17 |
# File 'lib/mine-sweeper.rb', line 9 def initialize @mines = Minefield.new intro loop do print_game_board take_a_turn check_for_game_end end end |