Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <unistd.h>
- using namespace std;
- bool IncludeBigTurns = true;
- int HowManyIn = 50;
- int Timer = 0;
- string Answer;
- vector<string> Turns {
- "R", //0
- "R'", //1
- "U", //2
- "U'", //3
- "M", //4
- "M'", //5
- "D", //6
- "D'", //7
- "L", //8
- "L'", //9
- "F", //10
- "F'", //11
- "B", //12
- "B'", //13
- "r",
- "r'",
- "u",
- "u'",
- "d",
- "d'",
- "l",
- "l'",
- "f",
- "f'",
- "b",
- "b'"
- };
- int main() {
- HowManyIn = HowManyIn - 1; //Dont erase this.
- if (IncludeBigTurns) {
- for (HowManyIn; HowManyIn >= 0; HowManyIn--) {
- int Chance = rand() % Turns.size();
- cout << Turns[Chance] << " ";
- }
- } else {
- for (HowManyIn; HowManyIn >= 0; HowManyIn--) {
- int Chance = rand() % 13;
- cout << Turns[Chance] << " ";
- }
- }
- cout << "Select timer: \n";
- cout << "1m\n";
- cout << "1.5m\n";
- cout << "2m\n";
- cout << "5m\n";
- cin >> Answer;
- if (Answer == "1m") {
- Timer = 60;
- } else if (Answer == "1.5m") {
- Timer = 90;
- } else if (Answer == "2m") {
- Timer = 120;
- } else if (Answer == "5m") {
- Timer = 300;
- } else if (Answer == "SecretMinute") {
- Timer = 1000;
- }
- cout << "5\n";
- sleep(1);
- cout << "4\n";
- sleep(1);
- cout << "3\n";
- sleep(1);
- cout << "2\n";
- sleep(1);
- cout << "1\n";
- sleep(1);
- cout << "GOO\n";
- do {
- cout << Timer << "\n";
- sleep(1);
- Timer = Timer - 1;
- } while (Timer != 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement