module StudioGame::GameTurn
Public Class Methods
take_turn(player)
click to toggle source
# File lib/studio_game/game_turn.rb, line 7 def self.take_turn(player) die = Die.new case die.roll when 1..2 player.blam when 3..4 puts "#{player.name} was skipped." else player.woot end # This will provide the random treasure found by the player # during the game treasure = TreasureTrove.random #puts "#{player.name} found a #{treasure.name} worth #{treasure.points} points" player.found_treasure(treasure) end