Using Python, create a program in Top-Down Design that lets the user play rock, paper, scissors against the computer.
If both players make the same choice, the process is repeated until there is a clear winner. Thus, a tie does not end a game, so multiple gestures might be needed by each player before there is a winner.
After each game, prompt the user with a question like: "Do you want to play again (Y/N)?". When they ultimately quit, your program should output the following statistics:
- The number of times the human player won
- The number of times that the computer won
- The percentage of times that the computer won
- The average number of "gestures" per game to determine a winner overall the games played
Before you start writing your program, (re)read section 6.2 on Problem Solving with Top-Down Design, because I want you to actually design your program. Split your program up into well-defined functions by doing a top-down design and developing a structure chart.
When you write your program, be sure to use:
- Meaningful variable names with good style (i.e., useCamelCase or use_underscores)
- Docstring comments at the start of the program and after the "def"inition of each function, describing what they do
- A main function (see lab4 Part C) located at the top of the program with a call to it at the bottom of the file to start execution
- Global constants where appropriate with good style (ALL_CAPS_AND_UNDERSCORES).