Module: ToccoStudioGame::GameTurn
- Defined in:
- lib/tocco_studio_game/game_turn.rb
Class Method Summary collapse
Class Method Details
.take_turn(player) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/tocco_studio_game/game_turn.rb', line 7 def self.take_turn(player) die = Die.new numRolled = die.roll puts "#{player.name} rolled a #{numRolled}" case numRolled when 1..2 player.blam when 3..4 puts "Player Skipped" else player.w00t end foundTreasure = TreasureTrove.random player.found_treasure(foundTreasure) end |