Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <time.h>
- #include <cstdlib>
- using namespace std;
- int main() {
- char ch;
- int win = 0;
- int tie = 0;
- int lose = 0;
- do {
- int choice;
- cout << "Welcome to the game, by which there are no rules" << endl;
- cout << " Lets play Rock, Paper, Scissors! " << endl;
- cout << "Rock ('1'), Paper ('2'), Scissors ('3'):" << endl;
- cin >> choice;
- int ai = rand() % 3 + 1;
- cout << "The computer chose: " << ai << endl;
- if (choice == 1 && ai == 1)
- {
- cout << "You done playing with your balls? Both Rocks, tie." << endl;
- tie++;
- }
- else if (choice == 1 && ai == 2)
- {
- cout << "You let the guy beat you with paper? Pathetic; you lose." << endl;
- lose++;
- }
- else if (choice == 1 && ai == 3)
- {
- cout << "Congrats, you almost literally fisted the compitition, you win." << endl;
- win++;
- }
- else if (choice == 2 && ai == 1)
- {
- cout << "Paper sucks. You got lucky. You won." << endl;
- win++;
- }
- else if (choice == 2 && ai == 2)
- {
- cout << "Both you got a bunch of stupid fingers pointing out, geniuses. Tie." << endl;
- tie++;
- }
- else if (choice == 2 && ai == 3)
- {
- cout << "Paper? What kind of loser chooses paper? You. You lose. Again. Probably..." << endl;
- lose++;
- }
- else if (choice == 3 && ai == 1)
- {
- cout << "You couldn't pick something other than Scissors? You lose this round." << endl;
- lose++;
- }
- else if (choice == 3 && ai == 2)
- {
- cout << "Paper was a bad choice on AI's part, I suppose you win." << endl;
- win++;
- }
- else if (choice == 3 && ai == 3)
- {
- cout << "Simplistic 'Live long and Prosper' for all, a tie." << endl;
- tie++;
- }
- else if (ch != 'y' || 'Y' || 'n' || 'N')
- {
- cout << "Stop doing dumb shit, man.";
- }
- else
- {
- cout << "You didn't select a valid option, dude." << endl;
- cout << "what's wrong with you?" << endl;
- }
- cout << "Wins: " << win << endl;
- cout << "Ties:" << tie << endl;
- cout << "Losses:" << lose << endl;
- cout << "Would you like to play again? Y/N" << endl;
- cin >> ch;
- }
- while (ch == 'Y' || ch == 'y');
- system("CLS");
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement