Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- import java.util.Scanner;
- //This program reads numbers and messages typed in by the user. WHat is the system of previlage
- public class Main{
- public static void main(String[] args) throws IOException {
- Banner();
- BufferedReader BR= new BufferedReader(new InputStreamReader(System.in));
- Scanner SC=new Scanner(System.in);
- System.out.println("Hello there!. What is your name? ");
- String Name= BR.readLine();
- System.out.println("Hello "+Name+"!");
- System.out.println("You wake up in a damp dark basement with nothing but a dirty mattress and you only have a window" +
- " you must venture this basement to find ways to get out.");
- System.out.println("There are some checkered tiles. You are in a 14ft by 15ft room with one window and door.\n The window is about the size of a shoe box and it is 20ft off of the ground. " +
- "You hear multiple foot steps upstairs, what do you do? " + "\nDo you (1) scream and yell for help? or (2) stay silent?");
- for(;;){
- int choice=SC.nextInt();
- if(choice==1){
- System.out.println("You dumbass he's not that dumb, " +
- "the kidnapper already sound proofed the room. Try again.");
- } else{System.out.println("Smart choice, the kidnapper already sound proofed the room.");
- break;}
- }
- System.out.println("You start panicking. " +
- "What if you never see the light of day ever again?"+ " Just then a man in a joker mask opens the door "
- + "\nHe asks 'Are you hungry?' He then hands out a plate of food."+ "\nDo you (1) take the food or (2) don't trust it and starve for the night? ");
- int choice2=SC.nextInt();
- if(choice2==1){
- System.out.println("He put drugs in the food and you're now knocked out cold.");
- }else{System.out.println("You listened to your gut and accepted the food but when he left didn't actually eat it."+" You went starving for the night.");}
- System.out.println("DAY 2:");
- System.out.println("The light is shining in through the window of the room. You have no idea what day or time it is. "+
- " \nYou hoped that yesterday was a nightmare and that this was all a dream, but then reality kicks in."+
- "\nYou look at the door and see that there is a lock with a keypad."+ "\nYou tap on it and it says 'Enter the 5 digit passcode' (do not enter 0 in front");
- int [] tries={1,2,3,4};
- for(int i=0;i<=4;i++){
- int passcode=SC.nextInt();
- if(passcode==93052){System.out.println("The door opens!");
- break;
- }
- else{
- for(i = 3; i<=4; i--){
- System.out.println("Try again. you only get "+tries[i]+" tries left.");
- int passcode2=SC.nextInt();
- if (passcode2==93052){System.out.println("The door opens!"); break;}
- if(i==0){
- System.out.println("The kidnapper was alerted! Hide!"+" He comes and throws a barrage of punches."+ "\nYou are beaten and you go to sleep on the bed."); break;}
- }break;
- }
- }
- System.out.println("Day 3\n");
- System.out.println("Its been 2 Days since you have eaten anything. You don't trust the man so you never accepted his food.\n"+
- "He then comes down with a plate full of flap jacks with syrup. \nDo you take it? (1) Yes, (2) No and starve.");
- int choice3=SC.nextInt();
- if(choice3==1){
- System.out.println("\nYou eat it and it was delicious! Nothing bad happened and you're okay!\n");
- }if(choice3==2){
- System.out.println("\nYou trusted your gut but starved the whole day.");
- }
- System.out.println("20 minutes after the man leaves, you try the keypad again. 'Enter the 5 digit code'(do not include 0 in front) ");
- for(int i=0;i<=4;i++){
- int passcode=SC.nextInt();
- if(passcode==93052){System.out.println("The door opens!");
- break;
- }
- else{
- for(i = 3; i<=4; i--){
- System.out.println("Try again. you only get "+tries[i]+" tries left.");
- int passcode2=SC.nextInt();
- if (passcode2==93052){System.out.println("The door opens!"); break;}
- if(i==3){
- System.out.println("You stop because you only have "+tries[2]+" tries left."); break;}
- }break;
- }
- }
- System.out.println("You take a look around and notice a little journal wedged under the mattress."+
- "In blood it says 'To whom ever is reading this, my name is Thomas Thurgood Smith. \nI am 14 years old and the son of Metilda and Peter Smith.\n I live on 23 Orange Grove Street, CT, 09970. \nI was captured by a masked man on August 29, 1992 at 3pm. "+
- "I was out going to get milk from the grocery store when a man said he needed my help lifting something into his truck. \nBeing the helping person I am I decided to help the man."+
- "He took me behind the store and there was a BIG RED VAN with big boxes infront.\n We got to the van and then he sprayed some chemicals in my face. I then woke up here.\n When I woke the next day, the man had a cake, he said it was his 40th birthday and he wanted to share it with 'someone special'.\n"+
- "The entry stops there. You flip through other pages but there are no more entries.\n You then decide to look around. "+"Decide to see what you can use to your advantage."+"You find a piece of tile floor that is about the size of your palm."+
- "\nDo you (1) try throwing the tile piece at the window to try to break it and yell for help? (2) try the keypad lock again.");
- for(;;){
- int choice4=SC.nextInt();
- if(choice4==1){
- System.out.println("You've thrown the rock about 19 times. The glass is too thick.");
- }else{
- System.out.println("You decide to try the key combination again. "+"\n'Enter the 5 digit code: (do not include 0 in front). ");
- for(int i=0;i<=2;i++){
- int passcode=SC.nextInt();
- if(passcode==93052){System.out.println("The door opens!");
- break;
- }
- else{
- for(i = 1; i<=2; i--){
- System.out.println("Try again. you only get "+tries[i]+" tries left.");
- int passcode2=SC.nextInt();
- if (passcode2==93052){System.out.println("The door opens!"); break;}
- if(i==1){
- System.out.println("You only have "+tries[0]+" tries left."+" Hint look back at the note left by Thomas Thurgood."); }
- }break;}
- }System.out.println("You slowly open the door, but you have a feeling to go back to the journal.");
- }
- }
- }
- public static void Banner(){
- System.out.println("THE BASEMENT!!"+"WARNING: THIS GAME IS PRETTY GRAPHIC AND CONTAINS DESCRIPTIONS OF KIDNAPPING" );
- }
- }
Add Comment
Please, Sign In to add comment