COMP 142 Project 2: Rock-Paper-Scissors-Lizard-Spock, C++ Version

For this project you will convert a simplified Python version of "Rock, Paper, Scissors, Lizard, Spock" into an equivalent C++ program. This version of RPSLS is slightly different than Project 1; this is not a multi-round game of RPSLS. There are two players to this game and the game ends after one throw (unless there's a tie). So everyone gets practice converting Python functions, lists, and matrices, you will all convert the same Python code (not your own code from Project 1).

[ Download starting Python code to convert ]

Your C++ code should be very similar to the starting Python code. Here are some additional guidelines.

Hints

Coding style

Testing your program

You should test your program thoroughly to make sure it works correctly.

What to turn in

Through Moodle, turn in your code as a file called rpsls_yourLastName_yourFirstName.cpp. You do not need to turn in anything other than the .cpp file; I do not need all the other files that Visual Studio creates.

Challenge Problems

None for this assignment. :(