Class: Player

Inherits:
Object
  • Object
show all
Defined in:
lib/minesweeper.rb

Instance Method Summary collapse

Constructor Details

#initialize(board) ⇒ Player

Returns a new instance of Player.



213
214
215
# File 'lib/minesweeper.rb', line 213

def initialize(board)
  @board = board
end

Instance Method Details

#take_turnObject



217
218
219
220
221
222
# File 'lib/minesweeper.rb', line 217

def take_turn

  until make_move do
    puts "That didn't work. Try again."
  end
end