module BattleRoyal::Roll
Public Class Methods
actions()
click to toggle source
# File lib/battle_royal/roll.rb, line 3 def self.actions [:power_up, :damage, nil] end
turn(player)
click to toggle source
# File lib/battle_royal/roll.rb, line 7 def self.turn(player) action = actions.sample !action.nil? ? player.send(action) : puts("\n#{player.name} missed a turn") end
weapon(_player)
click to toggle source
# File lib/battle_royal/roll.rb, line 12 def self.weapon(_player) WeaponChest.random end