DouZero_For_HLDDZ_FullAuto/douzero/evaluation/random_agent.py

10 lines
171 B
Python
Raw Permalink Normal View History

2021-07-28 19:47:43 +08:00
import random
class RandomAgent():
def __init__(self):
self.name = 'Random'
def act(self, infoset):
return random.choice(infoset.legal_actions)