Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- #include <windows.h>
- #include <string>
- // V2.1
- using namespace std;
- class redClass {
- public:
- void setName(string x) {
- name = x;
- }
- string getName(){
- return name;
- }
- private:
- string name;
- };
- int main() {
- redClass message1;
- message1.setName("You have selected, ");
- redClass message2;
- message2.setName("u dirty hag");
- redClass message3;
- message3.setName("AHHHHHHHHH AHH AGHHHA AHHAG");
- int playerSelect;
- cout << "Select an option" << endl;
- cout << "1 = A game of Pick a number 1-10" << endl;
- cout << "2 = WIP" << endl;
- cout << "3 = nothing at all" << endl;
- cout << "4 = Some option to configure yo stuff" << endl;
- cin >> playerSelect;
- if (playerSelect == 4) {
- cout << "ded" << endl;
- }
- if (playerSelect == 3) {
- cout << "Hurr durr durr HAG" << endl;
- Sleep(2000);
- cout << "stoopid" << endl;
- cout << "loser" << endl;
- Sleep(212031);
- }
- if (playerSelect == 2) {
- cout << message1.getName() << "Test 2" << endl;
- Sleep(1400);
- cout << "Enter your problem" << endl;
- }
- //////////////////////////////////////////////////////////////////////////////////
- if (playerSelect == 1) {
- cout << message1.getName() << "Pick a number 1 through 10" << endl;
- cout << "Annd..." << endl;
- Sleep(1000);
- cout << ". ";
- Sleep(500);
- cout << ". ";
- Sleep(200);
- cout << ". " << endl;
- Sleep(100);
- // Random message generator for message outcomes.
- int GUESS;
- srand((unsigned)time(NULL));
- int ANSWER = rand() % 10 + 1;
- cout << "Enter in a number, guess 1 - 10" << endl;
- cin >> GUESS;
- if (GUESS == ANSWER) {
- cout << "You got it right, good job sir!" << endl;
- Sleep(2000);
- }
- if (GUESS > 10) {
- cout << "I SAID ONE THROUGH TEN!!" << endl;
- }
- srand((unsigned)time(NULL)); // For use with the messsage outcomes.
- int randMessageloss = rand() % 6 + 0; // Defines randMessageloss1 as a number between 0 and 4
- if (randMessageloss == 1) { // Think of these as a three sided dice. The messages will appear depending on what number is chosen.
- cout << "you are the worst. try it again" << endl;
- Sleep(2000);
- }
- if (randMessageloss == 2){
- cout << "like seriously, come on. try again" << endl;
- Sleep(2000);
- }
- if (randMessageloss == 3) {
- cout << "that was awful so now i'm gonna give you one more chance. get it right loser" << endl;
- Sleep(2000);
- }
- if (randMessageloss == 4) {
- cout << "one more chance try again" << endl;
- Sleep(2000);
- }
- if (randMessageloss == 5) {
- cout << "now you're being unreasonable" << endl;
- Sleep(2000);
- }
- if (randMessageloss == 6) {
- cout << "loser try again." << endl;
- Sleep(2000);
- }
- cin >> GUESS;
- if (GUESS == ANSWER) {
- cout << "You have learned your lesson well citizen. A second helping of gruel for you tonight citizen!" << endl;
- Sleep(3000);
- }
- else
- {
- if (randMessageloss == 1){
- cout << "wow loser" << endl;
- Sleep(1000);
- }
- if (randMessageloss == 2){
- cout << "twice in a row. what a way to lose" << endl;
- Sleep(1200);
- }
- if (randMessageloss == 3){
- cout << "that was just horrible. cmon man you're giving me skin cancer" << endl;
- Sleep(4000);
- }
- if (randMessageloss == 1){
- cout << "twice are you serious " << endl;
- Sleep(1000);
- }
- if (randMessageloss == 2){
- cout << "TWO IN A ROW!" << endl;
- Sleep(1200);
- }
- if (randMessageloss == 3){
- cout << "you suck. like bad." << endl;
- Sleep(4000);
- }
- }
- }
- else
- cout << " " << endl;
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement