repl.it
@MatthewDoan1/

The_King.exe (Beta)

Java

The King, unfortunately, is an idiot, so you have to make the right decision for the laws in order for the King to survive. Choose wisely.

fork
loading
Files
  • Main.java
  • jdt.ls-java-project
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
import java.util.*;

class Main {
  public static void main(String[] args) {
    System.out.println("Here are all of the key numbers you will need: \n 1 = Foward ");
    
    
    
    System.out.println("You wake up in a room-like hall. \n Around you are several weapons that are broken, \n if not brutally destroyed. ");
    
    
    
    Scanner scan = new Scanner(System.in);
    int choice1 = scan.nextInt();

    if (choice1 == 1) {
      System.out.println("You move foward, \n hoping there is more adventure that lies ahead.");
      }

      System.out.println("Soon you are greeted by knights, \n who look down pitifully at you, \n so you look at them too.");

      System.out.println("(You can move foward with 1)");

      int choice1_1 = scan.nextInt();

      if (choice1_1 == 1) {
        System.out.println("You now enter a glamorous big chamber, \n complete with chandeliers, \n and more fancy stuff. \n The guards bow down to you as you sit on the throne. \n It seems like you are the king!");


      }

      System.out.println("(Keys you will need for this: \n 1 = Yes \n 2 = No)");

      System.out.println("It looks like you are the one who is in charge. \n You can make laws, so let's give it a try!");



      System.out.println("The first law: \n Pigs are now in charge. \n Yes or No?");

      
      int choice1_2 = scan.nextInt();

      if (choice1_2 == 2) {
        System.out.println("Most people are happy about that... \n but not the pigs themselves! They assasinate you.");
        System.out.println("GAME OVER \n PLEASE TRY AGAIN...");
        System.exit(0);
      }
      
      
      if (choice1_2 == 1) {
        System.out.println("Thanks to you, the pigs are now in charge! \n They will still let you keep your place, though...");

        System.out.println("The next law says: \n Socks should be the president of the USA.");

        
        int choice1_3 = scan.nextInt();
        
        if (choice1_3 == 2) {
          System.out.println("Socks are not the president of the USA. \n Everyone is happy, except the socks themselves. They assasinate you.");
          System.out.println("GAME OVER \n PLEASE TRY AGAIN...");
          System.exit(0);

        }
        
        
        
        if (choice1_3 == 1) {
          System.out.println("Socks are now the president of the USA! \n Boston and Chicago are happy, \n but no other baseball team is happy about that.");
          System.out.println("The next law says: \n School is now illegal! ");

          
          int choice1_4 = scan.nextInt();

          if (choice1_4 == 2) {
            System.out.println("The kids are MAD. They want you dead. \n They assasinate you.");
            System.out.println("GAME OVER \n PLEASE TRY AGAIN...");
            System.exit(0);

          }
          
          
          if (choice1_4 == 1) {
            System.out.println("Yay! Schools are now illegal! \n The kids thank you for that great choice!");

            System.out.println("Next law says: \n The sky is now the ocean, \n and the ocean is now the sky.");

            System.out.println("Yes or No?");

            
            int choice1_5 = scan.nextInt();



            if (choice1_5 == 1) {
              System.out.println("You now make the sky the ocean, and the ocean the sky. \n However, most people don't agree, and soon you are assasinated.");
              System.out.println("GAME OVER \n PLEASE TRY AGAIN...");
              System.exit(0);


            }

            if (choice1_5 == 2) {
              System.out.println("Good decision. Everyone was making fun of you... \n Now they aren't, but they still hate you. ");
              System.out.println("The next law says: \n Should Shrek be the national bird? ");

              
              int choice1_6 = scan.nextInt();

              if (choice1_6 == 1) {
                System.out.println("You chose yes! \n And most of USA doesn't care, \n except for some certain patriotic people. \n They assasinate you, for MURICA.");
                System.exit(0);

              }

              if (choice1_6 == 2) {
                System.out.println("Good choice! \n Even though your childhood may be ruined... \n At least you're not dead!");
                System.out.println("The next law says: \n You can legally take a lion to a movie theatre. ");

                int choice1_7 = scan.nextInt();

                if (choice1_7 == 1) {
                  System.out.println("You chose yes! \n That choice was good, until... \n A random person taking their lion 'accidentally' lost control. \n I'm sure that you can predict what happened next.");
                  System.out.println("GAME OVER");
                  System.exit(0);
                }
                if (choice1_7 == 2) {
                  System.out.println("Good thing you didn't allow that law... \n or else you could have had a bad death. \n The next law says: \n You can't sleep in a cheese shop. ");

                  int choice1_8 = scan.nextInt();

                  if (choice1_8 == 1) {
                    System.out.println("That was a worthless law. \n But, you slept in a cheese shop once... \n so........... \n GAME OVER ");
                    System.exit(0);

                  }

                  if (choice1_8 == 2) {
                    System.out.println("Good choice. \n Speaking of which, your time has come. \n Bye Bye. ");
                  }


                  
                }
                






              }

                

            
            }




            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            System.out.println("Yay! You didn't kill the king! \n YOU WON THE GAME!!!!");


            


            



          }
        
        
        
        
        
        
        }
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        }
      
      
      
      if (choice1_2 == 2) {
        System.out.println("The pigs are MAD! They wanted to be in charge, \n and now they can't! They invade your city, \n but luckily only a few minor injuries occur.");
        System.out.println("However, you become assasinated because of your laws. \n GAME OVER");
        System.exit(0);
      
      
      
      
      }

      

    



    
    
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  }
































}