def __init__(self, n, c, t, tbl_min, tbl_max,s=None, bs=None): Player.__init__(self, n, c, t, tbl_min, tbl_max) if s is not None: self._hand_strategy = s else: self._hand_strategy = BotPlayer \ .hand_strategies \ [randint(0, len(BotPlayer.hand_strategies)-1)] self._hand_strategy_name = BotPlayer \ .hand_strategy_names[self.hand_strategy-1] if bs is not None: self._bet_strategy = s else: self._bet_strategy = BotPlayer \ .bet_strategies \ [randint(0, len(BotPlayer.bet_strategies)-1)] self._bet_strategy_name = BotPlayer \ .bet_strategy_names[self.bet_strategy-1]
def __init__(self, n, c, t, tbl_min, tbl_max, s=None, bs=None): Player.__init__(self, n, c, t, tbl_min, tbl_max) if s is not None: self._hand_strategy = s else: self._hand_strategy = BotPlayer \ .hand_strategies \ [randint(0, len(BotPlayer.hand_strategies)-1)] self._hand_strategy_name = BotPlayer \ .hand_strategy_names[self.hand_strategy-1] if bs is not None: self._bet_strategy = s else: self._bet_strategy = BotPlayer \ .bet_strategies \ [randint(0, len(BotPlayer.bet_strategies)-1)] self._bet_strategy_name = BotPlayer \ .bet_strategy_names[self.bet_strategy-1]
def __init__(self, n, c, t, h): Player.__init__(self, n, c, t, 0, 0) self._house = h self._house_rule_name = Dealer.house_rule_names[self.house-1]
def __init__(self, n, c, t, h): Player.__init__(self, n, c, t, 0, 0) self._house = h self._house_rule_name = Dealer.house_rule_names[self.house - 1]