Exemple #1
0
 def simulate(self):
     while self.stop_condition():
         log = Log()
         self.player.strategy(self)
         log.pre_roll(self)
         self.shoot()
         self.delta = self.evaluate_roll()
         log.post_roll(self)
         self.player.catalogue(self, log)
     self.player.tabulate()
Exemple #2
0
    def simulate(self):
        while self.continue_playing():
            self.shoot()
            for player in self.players:
                if self.continue_betting(player):
                    log = Log()
                    player.strategy(self)
                    log.pre_roll(self, player)
                    self.roll_status = self.evaluate_roll(player)
                    log.post_roll(self, player)
                    player.catalogue(self, log)
                    self.table_status.append(self.roll_status[2])
            self.assess_post_roll()

        for player in self.players:
            player.collect_wager()
            print player.__doc__
            player.tabulate()