Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can I please get help on this? C++ is what needs to be used COSC 14L8: Lab Assignment #1 Computer Science Department @ Dallas Baptist
Can I please get help on this? C++ is what needs to be used
COSC 14L8: Lab Assignment #1 Computer Science Department @ Dallas Baptist University Spring 2020 1. In this lab, you will write a Rock Paper Scissors game. It will be computer against human. You need to use rand() to decide each move. The human players can decide their moves. This is a best-of- seven game. The one who wins 4 rounds first will be the winner. But this program is a cheater. It allows the player to win up to 3 times. Once the player wins three times, your program will control the game to make the computer finally win the game. At the end of the game, the player has the option to play again or not. Sample run: Computer's score: 2 1 for rock, 2 for paper, 3 for scissors Round 1: Your move: 1 Computer's move: 3 Rock beats Scissors YOU WON! Your score: 1 Computer's score: 0 Round 5: Your move: 2 Computer's move: 1 Paper beats Rock YOU WON! Your score: 3 Computer's score: 2 Round 2: Your move: 1 Computer's move: 2 Paper beats Rock YOU LOSE! Your score: 1 Computer's score: 1 Round 6: Your move: 3 Computer's move: 1 Rock beats Scissors YOU LOSE! Your score: 3 Computer's score: 3 Round 3: Your move: 3 Computer's move: 2 Scissors beats Paper YOU WON! Your score: 2 Computer's score: 1 Round 7: Your move: 2 Computer's move: 3 Scissors beats Paper YOU LOSE! Your score: 3 Computer's score: 4 !!! GAME OVER !!! I WIN! YOU LOSE! Ha Ha! Want to try again? n Bye! Round 4: Your move: 1 Computer's move: 2 Paper beats Rock YOU LOSE! Your score: 2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started