提速降费

This commit is contained in:
zhiyang7 2021-12-14 14:16:30 +08:00
parent c82b834d89
commit 8939272955
1 changed files with 2 additions and 1 deletions

3
douzero/env/game.py vendored
View File

@ -2,6 +2,7 @@ from copy import deepcopy
from . import move_detector as md, move_selector as ms
from .move_generator import MovesGener
import random
import pickle
EnvCard2RealCard = {3: '3', 4: '4', 5: '5', 6: '6', 7: '7',
8: '8', 9: '9', 10: '10', 11: 'J', 12: 'Q',
@ -431,7 +432,7 @@ class GameEnv(object):
{pos: self.info_sets[pos].player_hand_cards
for pos in ['landlord', 'landlord_up', 'landlord_front', 'landlord_down']}
return deepcopy(self.info_sets[self.acting_player_position])
return pickle.loads(pickle.dumps(self.info_sets[self.acting_player_position]))
class InfoSet(object):
"""