10 lines
171 B
Python
10 lines
171 B
Python
|
import random
|
||
|
|
||
|
class RandomAgent():
|
||
|
|
||
|
def __init__(self):
|
||
|
self.name = 'Random'
|
||
|
|
||
|
def act(self, infoset):
|
||
|
return random.choice(infoset.legal_actions)
|