Douzero_Resnet/douzero/evaluation/random_agent.py

10 lines
171 B
Python
Raw Permalink Normal View History

2021-09-07 16:38:34 +08:00
import random
class RandomAgent():
def __init__(self):
self.name = 'Random'
def act(self, infoset):
return random.choice(infoset.legal_actions)