Class: Player
- Inherits:
-
Object
- Object
- Player
- Defined in:
- lib/minesweeper.rb
Instance Method Summary collapse
-
#initialize(board) ⇒ Player
constructor
A new instance of Player.
- #take_turn ⇒ Object
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_turn ⇒ Object
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 |