in jsuarez/Baselines.py [0:0]
def decide(self, pc, stimuli, actionTree):
done = False
while not actionTree.isLeaf:
actionTree.randomNode()
#Note: will pass if no valid args
if type(actionTree.action) == Actions.Reproduce:
self.reproduce()
actionTree.decideArgs([])
else:
actionTree.randomArgs()
if actionTree.args is None:
return actionTree.passActionArgs()
action, args = actionTree.actionArgPair()
#print(str(action) + ' ' + str(args))
return action, args