Ejemplo n.º 1
0
 def take_cards(self, cards):
     if len(cards) < 2:
         #TODO: figure out and implement rule on reshuffling building cards 
         raise FatalPlyusError("Building deck is out of cards.")
     self.buildings_buffer = draw_n(cards, 2)
Ejemplo n.º 2
0
 def test_draw_too_many(self):
     with self.assertRaises(ValueError):
         xs = [1, 2, 3]
         a = util.draw_n(xs, 4)
Ejemplo n.º 3
0
 def take_cards(self, cards):
     if len(cards) < 2:
         #TODO: figure out and implement rule on reshuffling building cards
         raise FatalPlyusError("Building deck is out of cards.")
     self.buildings_buffer = draw_n(cards, 2)