Question: In this project, you will be implementing a rock - paper - scissors game! Rock - paper - scissors is a hand game played between

In this project, you will be implementing a rock-paper-scissors game! Rock-paper-scissors is a hand game played between two people, in which each player simultaneously forms one of three shapes with an outstretched hand. These shapes are rock(a simple fist),paper(a flat hand), and scissors(a fist with the index and middle fingers extended, forming a V).
A player who plays rock will beat another player who has chosen scissors, but will lose to one who has played paper; a play of paper will lose to a play of scissors. If both players choose the same shape, the game is tied. y completing this project, you will learn to:
Develop programs that are divided into functions
Compile programs that are not yet complete by using stubs
Verify the correctness of functions by writing test cases
Implement functions based on a specification and RME comment
Use existing operators to perform interactive I/O using C++
Write logical expressions and selection statements in C++
Create algorithms that use conditionals and loops
An important objective is to have fun!
You will apply the following skills you learned in lecture:
Lecture 3
Call math functions like floor() and ceil().
Lecture 4
Call functions with multiple parameters
Use return statements to provide a result from a function
Lecture 5
Create function declarations to allow calls to a function before its code is provided in a function definition
Interpret RME comments
Use the iterative development cycle for writing your functions
Lecture 6
Use if, else, and else if to conditionally execute code
Execute the cin algorithm to determine how a given user input will be stored into variables
Lecture 7
Write event-controlled loops using while
Combine loops with cin to continue reading until the user is finished
Lecture 8
Write count-controlled loops using for
Getting Started
Starter Files

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!