Play rock, paper, scissors against an AI… without letting it cheat.
interactive=True
parameter allows tasks to interact with the user, essential for getting the player’s input.
result_type
to ensure that choices are valid and properly structured. This helps maintain the integrity of the game.
context
parameter allows us to share information between tasks, crucial for determining the winner based on both players’ choices.