Exemplo n.º 1
0
 def __init__(self, bankroll=2000):
         self.screen = pygame.Surface((200, 450))
         self.bankroll = bankroll
         self.number_chips = list(parse_on_chips(self.bankroll))
         self.chips = [
             Chip(pos=(1, 1), value=1, number=self.number_chips[0]),
             Chip(pos=(1, 60), value=5, number=self.number_chips[1]),
             Chip(pos=(1, 120), value=10, number=self.number_chips[2]),
             Chip(pos=(1, 180), value=25, number=self.number_chips[3]),
             Chip(pos=(1, 240), value=100, number=self.number_chips[4]),
             Chip(pos=(1, 300), value=1000, number=self.number_chips[5]),
         ]
Exemplo n.º 2
0
 def update(self):
     self.number_chips = list(parse_on_chips(self.bankroll))
     for chip in self.chips:
         self.chips[self.chips.index(chip)].number = self.number_chips[self.chips.index(chip)]