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

Function main

rock_paper_scissors.py:39–44  ·  view source on GitHub ↗

Main function to play the game.

()

Source from the content-addressed store, hash-verified

37
38
39def main():
40 """Main function to play the game."""
41 user_choice = get_user_choice()
42 computer_choice = get_computer_choice()
43 print(f"Computer chose: {computer_choice}")
44 print(decide_winner(user_choice, computer_choice))
45
46
47if __name__ == "__main__":

Callers 1

Calls 3

get_user_choiceFunction · 0.70
get_computer_choiceFunction · 0.70
decide_winnerFunction · 0.70

Tested by

no test coverage detected