Source code for splendor.agents.generic.random

from splendor.template import Agent
import random


[docs] class myAgent(Agent): def __init__(self, _id): super().__init__(_id)
[docs] def SelectAction(self, actions, game_state, game_rule): return random.choice(actions)