Class: MineSweeper::Game

Inherits:
Object
  • Object
show all
Defined in:
lib/mine-sweeper.rb,
lib/mine-sweeper/game_helper.rb

Instance Method Summary collapse

Constructor Details

#initializeGame



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