Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ReportWinner(int winvalue)
- /*Informs the user who won the round based on winvalue
- winvalue >= 0 && winvalue <= 2
- The winner of the round is reported*/
- {
- if(winvalue == 1)
- {
- SetColor(4);
- cout << endl << "Sorry, the computer won this hand." << endl;
- SetColor(7);
- }
- else if (winvalue == 2)
- {
- SetColor(2);
- cout << endl << "Congratulations, you won this hand!" << endl;
- SetColor(7);
- }
- else
- {
- SetColor(5);
- cout << endl << "This hand resulted in a draw." << endl;
- SetColor(7);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement