Ejemplo n.º 1
0
 def __init__(self, config):
     from rlcard.games.simpledoudizhu import Game
     from rlcard.games.doudizhu.utils import encode_cards
     from rlcard.games.doudizhu.utils import cards2str
     from rlcard.games.doudizhu.utils import SPECIFIC_MAP, CARD_RANK_STR
     from rlcard.games.simpledoudizhu.utils import ACTION_LIST, ACTION_SPACE
     self._encode_cards = encode_cards
     self._cards2str = cards2str
     self._SPECIFIC_MAP = SPECIFIC_MAP
     self._CARD_RANK_STR = CARD_RANK_STR
     self._ACTION_LIST = ACTION_LIST
     self._ACTION_SPACE = ACTION_SPACE
     self.game = Game()
     super().__init__(config)
     self.state_shape = [6, 5, 15]
Ejemplo n.º 2
0
 def __init__(self, config):
     self.game = Game()
     super().__init__(config)
     self.state_shape = [6, 5, 15]