예제 #1
0
파일: player.py 프로젝트: peterrecore/plyus
 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)
예제 #2
0
 def test_draw_too_many(self):
     with self.assertRaises(ValueError):
         xs = [1, 2, 3]
         a = util.draw_n(xs, 4)
예제 #3
0
파일: player.py 프로젝트: peterrecore/plyus
 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)