Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int main(){
- int inventory[8],check,attempt,choice,ready,r=1,c=1;
- //main menu
- cout << "=========================================";
- cout << "\n=\t Food Wants To Eat Humans \t=";
- cout << "\n=========================================\n";
- cout << "\nFood Siege! Game where the food eats you" << endl << endl << "[Instructions]";
- cout << endl << endl << "You are given 2 of each unique ingredients to contain the raging expirements" << endl << "Monsters are vulnerable and immune to certain ingredients depending on their main flavor";
- cout << endl << endl << "Enter [1] to start! \nPress any key to close the game" <<endl << endl;
- cin >> choice;
- if(choice==c){
- system("CLS");
- cout << "[Gastronomy Professor Masayuki] I'm glad you are here. The people at the culinary lab blew a high-tech stove." <<endl << endl;
- cout << "[Gastronomy Professor Masayuki] We need your help to catch these wild failed experiments roaming around the building"<<endl << endl;
- cout << "[Gastronomy Professor Masayuki] Take 2 each of these special ingredients to contain these monsters." <<endl << endl;
- cout << "[Gastronomy Professor Masayuki] I need to help the other culinary students. I will be at the Gastronomy Mastery Building" <<endl << endl;
- cout << endl << "You recieved [Iodized Salt] x2 , [Sweet Jam] 2x , [Sour Gum] 2x and [Spicy Jerky] 2x" << endl;
- cout << endl << "Type [1] to hunt monsters \nPress any key to close the game" << endl <<endl;
- cin >> ready;
- if(ready==r){
- system("CLS");
- // start game
- // variable
- const int mons_array=8,main_array=8;
- int ctr=1,turn=8,search,probability;
- const string mons[8]={"Abominable Cream Pie","Entagled Spaghetti","Elvish Rotten Apple","Zombie Blue Cheese","Muddy Chili Con Carne Blob","Dragonic Kimchi Ramyeon","Grillled BBQ Kracken","Taco Monster"};
- const string main [8]={"Sweet","Sweet","Sour","Sour","Spicy","Spicy","Salty","Salty"};
- const string second [8]={"Salty","Salty","Sweet","Salty","Sour","Sour","Sweet","Spicy"};
- const string absent [8]={"Sour","Spicy","Spicy","Spicy","Sweet","Salty","Sour","Sour"};
- const string sec_absent [8]={"Spicy","Sour","Salty","Sweet","Salty","Sweet","Spicy","Sweet"};
- srand(time(0)); //seed random number
- for(int ctrl=1;ctrl<9;++ctrl){
- cout << "press [1] to look for monster = ";
- cin >> search;
- if(search==1){
- ////////
- for (int i=0;i < ctr; i++){
- int index1 = rand() % mons_array;
- int index2 = rand() % main_array;
- cout << "you have encounter a wild " << main[index2] << " " << mons[index1] << "!" << endl << endl;
- cout << "Do you want to throw \n[1] Iodized Salt\n[2] Sweet Jam\n[3] Sour Gum\n[4] Spicy Jerky\n\n";
- cin >> probability;
- switch(probability){
- case 1:
- if(main[index2]="Salty"){
- }
- break;
- case 2:
- //
- break;
- case 3:
- //
- break;
- case 4:
- //
- break;
- default:
- //
- break;
- }
- }
- /////////
- }
- else{
- system("CLS");
- cout << "Terminating Game to go back to main menu";
- }
- }
- //this is main menu ends
- }
- else{
- system("CLS");
- cout << "Terminating Game to go back to main menu";
- };
- }
- else{
- system("CLS");
- cout << "Going back to Main Menu";
- };
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement