提速降费
This commit is contained in:
parent
c82b834d89
commit
8939272955
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue