Question: code in c++, starter code provided #include using std::cout; using std::cin; using std::endl; using std::boolalpha; // add any other includes you need. Up to you
code in c++, starter code provided
#include
using std::cout; using std::cin; using std::endl; using std::boolalpha;
// add any other includes you need. Up to you
/*
for this we will use:
1 - rock
2 - paper
3 - scissors
*/
// PUT YOUR FUNCTIONS BELOW THIS LINE
// MAIN IS BELOW, DON'T CHANGE
int main() {
cout // print true or false for bools
int test;
cin >> test;
switch (test) {
case 1 : { // strategy 1
long player, previous_result, previous_play, opponent_play;
cin >> player >> previous_result >> previous_play >> opponent_play;
cout
break;
} // of case 1
case 2:{ // strategy 2
long player, previous_result, previous_play, opponent_play;
cin >> player >> previous_result >> previous_play >> opponent_play;
cout
break;
} // of case 2
case 3: { // strategy 3
long player, previous_result, previous_play, opponent_play;
cin >> player >> previous_result >> previous_play >> opponent_play;
cout
break;
} // of case 3
case 4: { // score result
long p1, p2;
cin >> p1 >> p2;
cout
break;
} // of case 4
} // of switch
} // of main




1 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
