Question: I'm Taking a C++ programming class and I need a code that could compile this program and run>> Rock Paper Scissors Lizard Spock Your programming

I'm Taking a C++ programming class and I need a code that could compile this program and run>>

Rock Paper Scissors Lizard Spock

Your programming assignment is to create the game Rock, Paper, Scissors, Lizard Spock, based off of the TV show Big Bang Theory. You will be working off of the Chapter 6 Lab when you made Rock, Paper Scissors. The games is played exactly the same as Rock Paper Scissors with two additional characters: Lizard and Spock. The rules for winners are as follows:

Rock smashes Scissors

Rock crushes Lizard

Scissors cuts Paper

Scissors decapitates Lizard

Paper covers Rock

Paper disproves Spock

Lizard eats Paper

Lizard poisons Spock

Spock vaporizes Rock

Spock smashes Scissors

Use Lab 6 as a guide. Your program will need to look and function just like Lab 6.

Requirements

The file you create will need to be named: rpsls-.cpp

Your header block must be formatted like this:

// Author: Your Name

// Due Date: 10/23/2017

// Description: Rock Paper Scissors Lizard Spock

You must make a fully working version of this game with the following implementations:

The computer will randomly choose between the 5 new options (rock, paper, scissors, lizard, spock).

You will have a function that records the choice of each player for every game in a text file named gameLog.txt in the following format:

User Choice, Computer Choice

Example:

rock, spock

lizard, paper

paper, scissors

All input entered by the user must be converted to lowercase. (This will help you with your logical comparisons, since you will be doing this twice now within each game iteration.)

All input entered by the user must be validated. (Verifying that rock, paper, etc. are spelled correctly.) If the user enters something invalid, ask to input again.

After a game is played, ask if the user would like to play again.

Example game output:

+++++++++++++++++++++++++++++++++++++++++++

Welcome to Rock Paper Scissors Lizard Spock!

+++++++++++++++++++++++++++++++++++++++++++

Type in your choice: Rock, Paper, Scissors, Lizard, Spock.

Spock

The computer randomly chose scissors

Spock smashes scissors, you win!

Would you like to play again? (Type Yes or No)

yes

Type in your choice: Rock, Paper, Scissors, Lizard, Spock.

Paper

The computer randomly chose scissors

Scissors cuts paper, you lose!

Would you like to play again? (Type Yes or No)

yes

Type in your choice: Rock, Paper, Scissors, Lizard, Spock.

Lizard

The computer randomly chose paper

Lizard eats paper, you win!

Would you like to play again? (Type Yes or No)

no

+++++++++++++++++++++++++++++++++++++++++++

Game Over

+++++++++++++++++++++++++++++++++++++++++++

* I want to have the same out put please. Thank you

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 Databases Questions!