Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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: 2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 17th International Conference Dasfaa 2012 Busan South Korea April 2012 Proceedings Part 1 Lncs 7238

Authors: Sang-goo Lee ,Zhiyong Peng ,Xiaofang Zhou ,Yang-Sae Moon ,Rainer Unland ,Jaesoo Yoo

2012 Edition

364229037X, 978-3642290374

More Books

Students also viewed these Databases questions

Question

Prepare an ID card of the continent Antarctica?

Answered: 1 week ago

Question

What do you understand by Mendeleev's periodic table

Answered: 1 week ago

Question

Persuasive Speaking Organizing Patterns in Persuasive Speaking?

Answered: 1 week ago