class PlayerDeck
Public Class Methods
starting(ops={})
click to toggle source
# File lib/ascension/cards.rb, line 78 def self.starting(ops={}) res = new(ops) 8.times { res << Card::Hero.apprentice } 2.times { res << Card::Hero.militia } res.shuffle! res end
Public Instance Methods
draw_one()
click to toggle source
# File lib/ascension/cards.rb, line 69 def draw_one fill_from_discard! if empty? cards.pop end
fill_from_discard!()
click to toggle source
# File lib/ascension/cards.rb, line 73 def fill_from_discard! self.cards = side.discard.cards side.discard.cards = [] shuffle! end