Пример #1
0
    def itsYourTurn(self, last_chance=False):
        PokerClientProtocol.itsYourTurn(self)
        time.sleep(random.randint(1, 2))
        if last_chance:
            self.executeCmd("call")
            return
        rand = random.random()

        if rand < 0.3:
            self.executeCmd("raise 1000")
        elif rand < 0.4:
            self.executeCmd("fold")
        else:
            self.executeCmd("call")
Пример #2
0
    def itsYourTurn(self, last_chance=False):
        PokerClientProtocol.itsYourTurn(self)
        time.sleep(random.randint(1,2))
        if last_chance:
            self.executeCmd("call")
            return
        rand = random.random()

        if rand < 0.3:
            self.executeCmd("raise 1000")
        elif rand < 0.4:
            self.executeCmd("fold")
        else:
            self.executeCmd("call")