Codecademy / learn-cpp

Codecademy | Learn C++
https://www.codecademy.com/learn/learn-c-plus-plus
715 stars 334 forks source link

Added RPSLS_switch_scores.cpp #9

Closed Ali-Parandeh closed 5 years ago

Ali-Parandeh commented 5 years ago

Advanced Solution:

Uses structs, functions, switch cases, if/else statements, while loops and re-assignments to add the following functionalities:

Usage:

  1. Set a winning target to get to.
  2. Choose one of the options from rock, paper, scissors, lizard and Spock to try and win the computer.
  3. Keep playing until either you or the computer wins

.