module ToccoStudioGame::GameTurn

Public Class Methods

take_turn(player) click to toggle source
# 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