MCPcopy Create free account
hub / github.com/geekcomputers/Python / get_computer_choice

Function get_computer_choice

BrowserHistory/rock_paper_scissors.py:20–23  ·  view source on GitHub ↗

Randomly select computer's choice.

()

Source from the content-addressed store, hash-verified

18
19
20def get_computer_choice():
21 """Randomly select computer's choice."""
22 options = ["rock", "paper", "scissors"]
23 return random.choice(options)
24
25
26def decide_winner(player, computer):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected