The document defines a game function that plays a round of rock-paper-scissors between a player and computer. The function takes the player's choice and a result dictionary as parameters. It randomly generates the computer's choice, compares the choices to determine a winner, updates the result scores accordingly, and prints out the choices, winner, and running scores.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
70 views
Urok 3
The document defines a game function that plays a round of rock-paper-scissors between a player and computer. The function takes the player's choice and a result dictionary as parameters. It randomly generates the computer's choice, compares the choices to determine a winner, updates the result scores accordingly, and prints out the choices, winner, and running scores.