Write a Python program that plays the rock-paper-scissors game, that following happens: Rock breaks scissors Paper covers rock Scissors cut paper There is a tie (both players picked the same thing)...


Write a Python program that plays the rock-paper-scissors game, that following happens:



  • Rock breaks scissors

  • Paper covers rock

  • Scissors cut paper

  • There is a tie (both players picked the same thing)



Fulfillments:



  1. Your program should have at least 2 functions, including a main() function (no global variables or global code other than a call to main within an if-statement)

  2. You should use at least one multi-way if-statement (using "elif").

  3. You should use at least one logical "and" or "or" in your program

  4. You should always output who won (unless there's a tie).

  5. Every function (except main) needs to have a comment in a triple-quoted string at the beginning, briefly explaining what it does.

  6. Have a repeat function that asks the user if they want to exit the game (ask the user whether he/she wants to continue the game.)



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here