module StudioGameJB::GameTurn
Public Class Methods
take_turn(player)
click to toggle source
# File lib/studio_game_jb/game_turn.rb, line 8 def self.take_turn(player) dice = Dice.new case dice.roll when 1..2 player.blam when 3..4 puts "#{player.name} was skipped." else player.w00t end player.found_treasure TreasureTrove.random end