Question: Submit a single source code file (game.c) to Gradescope. You are working at GenXYZ where you develop educaJonal soKware to engage young students. Your task

Due: Tuesday, January 30, 11:59pm Submit a single source code file (game.c) to Gradescope. You are working at GenXYZ where you develop educational software to engage young students. Your task is to write a simple rock, paper, scissors game in C. The game should allow a player to play against the computer by entering their choice of rock, paper or scissors. The winner is determined according to the rules of the classic game: After the game they are asked if they want to play again. They can quit the game by pressing "q Here is an example of how the game plays: Welcome to Rock, Paper, Scissors! Press "q' to quit or any other key to continue: Enter your move (r for rock, p for paper, s for scissors): Computer's move: s You win! Press 'q' to quit or any other key to continue: x Enter your move (r for rock, p for paper, s for scissors): p Computer's move: You wint Press 'q' to quit or any other key to continue: Enter your move (r for rock, p for paper, s for scissors): 234234 Invalid move. Enter your move (r for rock, p for paper, s for scissors): asdfsf Invalid move. Enter your move (r for rock, p for paper, s for scissors): r Computer's move: p Scissors Computer wins! Press 'q' to quit or any other key to continue: 9 Bye Bye! Consider structuring your program as four functions: GetPlayerHove() check for valid input and re-prompt if invalid return 'r', 'p', or 's'. Get ComputerMove() use rand() return 'r', 'p', or 's' PlayRockPaperScissorsGane() get noves use rules to check for winnner print("You win!") main() while c != 'q' PlayRockPaperScissorsGame() print("Bye Bye !") Your assignment will be graded on how well it plays (70pts.) and how well your code is written and its readability (30pts.). Be consistent in your formatting and use of Cidioms.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
