class Arkham::Deck
Public Class Methods
new()
click to toggle source
# File lib/arkham/deck.rb, line 5 def initialize @cards = starting_deck end
Public Instance Methods
draw_five()
click to toggle source
# File lib/arkham/deck.rb, line 19 def draw_five @cards[0..4] end
draw_random()
click to toggle source
# File lib/arkham/deck.rb, line 23 def draw_random @cards.shuffle.pop end
starting_deck()
click to toggle source
# File lib/arkham/deck.rb, line 9 def starting_deck [ Card.new("Fireball", 4, 0, 0), Card.new("Fireball", 4, 0, 0), Card.new("Protect", 0, 5, 0), Card.new("Protect", 0, 5, 0), Card.new("Heal", 0, 0, 10) ] end