Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <cstring>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- // Bot Ai Functions //
- void BotAi() {
- cout << "I am L O N E" << endl;
- cout << " S T A R" << endl;
- cout << " A.I:";
- }
- void BotAiAskAge() {
- cout << " How old are you?" << endl;
- }
- void BotAiSpeakAge() {
- cout << "Are you really ";
- }
- void BotAiSpeak1() {
- cout << "Ok. ";
- }
- void BotAiInvalidWords() {
- cout << "What?";
- }
- void BotAiLieReply() {
- cout << "Then get the fuck out.";
- }
- void BotAiName() {
- cout << "What's your name?" << endl;
- }
- void BotAiGreeting() {
- cout << "Nice to meet you, ";
- }
- // Start of Main Script //
- int main() {
- srand(time(0));
- cout << "[Input a number between 1 and 5]" << endl;
- char BotNameArr[100][100];
- int BotArr[5] = {0, 0, 0, 0, 0};
- int Ai;
- cin >> Ai;
- if (Ai <= 5) {
- cout << "[Success!]" << endl;
- BotArr[0] = Ai;
- }
- switch (BotArr[0]) {
- case 1:
- cout << "It is 1." << endl;
- break;
- case 2:
- cout << "It is 2." << endl;
- break;
- case 3:
- cout << "It is 3." << endl;
- break;
- case 4:
- cout << "It is 4." << endl;
- break;
- case 5:
- cout << "It is 5." << endl;
- break;
- default:
- cout << "[No matches found]" << endl;
- }
- if (Ai <= 5) {
- cout << "[Random numbers generated based on your valid number input]" << endl;
- }
- else {
- cout << "[& Failed to generate random numbers]" << endl;
- }
- for (Ai; Ai <= 5; Ai++) {
- cout << 1 + (rand() % 100) <<endl;
- }
- int Ai2;
- if (BotArr[0] <= 5 & BotArr[0] != 0) {
- Ai2 = BotArr[0];
- cout << "Passing the value to a new variable and testing it.." << endl;
- }
- else {
- cout << "[+ Failed to pass value to new variable]" << endl;
- cout << "[Restart the program]";
- }
- switch (Ai2) {
- case 1:
- cout << "It is 1." << endl;
- break;
- case 2:
- cout << "It is 2." << endl;
- break;
- case 3:
- cout << "It is 3." << endl;
- break;
- case 4:
- cout << "It is 4." << endl;
- break;
- case 5:
- cout << "It is 5." << endl;
- }
- // Possible choice (2+3) //
- if (Ai2 == 2) {
- Ai--;
- Ai--;
- Ai--;
- }
- if (Ai == 3) {
- cout << "Decrementing original variable's value to 3 and adding it to the value of 2..." << endl;
- cout << "Value is now " << Ai+Ai2 << endl;
- cout << "[Restart program until you find the key number]" << endl;
- }
- // Possible choice (3+2) //
- if (Ai2 == 3) {
- Ai--;
- Ai--;
- Ai--;
- Ai--;
- }
- if (Ai == 2) {
- cout << "Decrementing original variable's value to 2 and adding it to the value of 3..." << endl;
- cout << "Value is now " << Ai+Ai2 << endl;
- cout << "[Restart program until you find the key number]" << endl;
- }
- // Possible choice (4+1) //
- if (Ai2 == 4) {
- Ai--;
- Ai--;
- Ai--;
- Ai--;
- Ai--;
- }
- if (Ai == 1) {
- cout << "Decrementing original variable's value to 1 and adding it to the value of 4..." << endl;
- cout << "Value is now " << Ai+Ai2 << endl;
- cout << "[Restart program until you find the key number]" << endl;
- }
- // Possible choice (1+4) //
- if (Ai2 == 1) {
- Ai--;
- Ai--;
- }
- if (Ai == 4) {
- cout << "Decrementing original variable's value to 4 and adding it to the value of 1..." << endl;
- cout << "Value is now " << Ai+Ai2 << endl;
- cout << "[Restart program until you find the key number]" << endl;
- }
- // Enlightened choice (5) //
- if (Ai2 == 5) {
- BotArr[1] = Ai2;
- cout << "[You have chosen the number 5! It is the key]" << endl;
- cout << "<(Welcome to)>" << endl;
- char L = 'L';
- char O = 'O';
- char N = 'N';
- char E = 'E';
- char S = 'S';
- char T = 'T';
- char A = 'A';
- char R = 'R';
- cout <<" " << L <<" " << O <<" " << N <<" " << E << endl <<" " << S << " " << T << " " << A << " " << R << endl;
- cout << " A.I (unfinished)" << endl;
- BotAiAskAge();
- }
- int Age;
- cin >> Age;
- if (Age > 16) {
- BotAiSpeakAge();
- cout << Age << "?" << endl;
- }
- else {
- cout << "Fuck off, kid." << endl;
- cout << "[Restart the program when you're 17.]";
- }
- string AA;
- cin >> AA;
- if (AA == "yes" || AA == "yeah" || AA == "yep" || AA == "yup" || AA == "Yes" || AA == "Yeah" || AA == "Yep" || AA == "Yup") {
- BotAiSpeak1();
- }
- else {
- BotAiLieReply();
- }
- if (AA == "yes" || AA == "yeah" || AA == "yep" || AA == "yup" || AA == "Yes" || AA == "Yeah" || AA == "Yep" || AA == "Yup") {
- BotAiName();
- }
- cin >> BotNameArr[0];
- BotAiGreeting();
- cout << BotNameArr[0] << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement