Skip to content

GabrielAllba/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Hat

The Rock Paper Scissors Lizard Spock games. This is the infamous game brought to popularity with the TV show The Big Bang Theory. This training project, prepared by Codecademy.

Table of Contents

Project Prompt

Write a rock_paper_scissors.cpp program that: rock paper scissors lizard spock

  • Prompts the user to select either Rock, Paper, Scissors, Lizard, or Spock.
  • Instructs the computer to randomly select either Rock, Paper, Scissors, Lizard, or Spock.
  • Compares the user’s choice and the computer’s choice and determine the winner.
  • Informs the user who the winner is.

Technologies

  • C++

Setup

How to compile and execute:

  1. Download rockpaper.cpp.
  2. Open command line interface and navigate to the directory where the files are downloaded.
  3. Run the following commands to compile and execute the program:
g++ rockpaper.cpp -o rockpaper
./rockpaper

Sources

Codecademy's Learn C++ Course.

About

CodeCademy C++ Course

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages