Module: StudioGame::GameTurn
- Defined in:
- lib/studio_game/Game_turn.rb
Class Method Summary collapse
Class Method Details
.take_turn(b) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/studio_game/Game_turn.rb', line 8 def self.take_turn(b) die = Die.new case die.roll when 1..2 b.shart when 3..4 puts "#{b.name} kept cool and didn't shart." else b.high_five end treasure = TreasureTrove.random b.found_treasure(treasure) end |