from flows.base_flows import Flow | |
from typing import List | |
import random | |
class RockPaperScissorsPlayer(Flow): | |
def __init__(self, **kwargs): | |
super(RockPaperScissorsPlayer, self).__init__(**kwargs) | |
def run(self, input_data, expected_outputs: List[str] = None): | |
choice = random.choice(["rock", "paper", "scissors"]) | |
return {"choice": choice} | |