File size: 376 Bytes
2dbfb72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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}