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) #this is the take_turn method die = Die.new case die.roll when 1..2 player.blam when 3..4 puts "#{player.name} was skipped." else player.w00t end treasure=TreasureTrove.random #puts "#{player.name} foun a #{treasure.name} worth #{treasure.points} points." #no longer need since since what was found is now in the found_treasure method player.found_treasure(treasure) end