Selaa lähdekoodia

Merge branch 'dev' into Table

merge
Chad 6 vuotta sitten
vanhempi
commit
ab17284e92
1 muutettua tiedostoa jossa 172 lisäystä ja 1 poistoa
  1. 172
    1
      src/main/java/io/zipcoder/casino/Leviathan/Table.java

+ 172
- 1
src/main/java/io/zipcoder/casino/Leviathan/Table.java Näytä tiedosto

@@ -34,7 +34,178 @@ public class Table {
34 34
                 choice = aConsole.getIntInput("Enter your choice");
35 35
             } else {
36 36
                 while (choice < 4) {
37
-                    aConsole.println("It looks like you don't have any chips. You'll need chips to play any gambling games.");
37
+                    {
38
+                        aConsole.println("It looks like you don't have any chips. You'll need chips to play any gambling games.");
39
+                        //responseCounter++;
40
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
41
+                        choice = aConsole.getIntInput("Enter your choice");
42
+
43
+                    }
44
+                    while (choice == 5) {
45
+                        int responseCounter = 1;
46
+                        aConsole.println("I already told you. You're too young to buy chips, pal!");
47
+                        responseCounter++;
48
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
49
+                        choice = aConsole.getIntInput("Enter your choice");
50
+                        if (choice == 4) {
51
+                            aGame = new Yahtzee(aPlayer);
52
+                            aGame.playGame();
53
+                            played = true;
54
+                        }
55
+
56
+                        responseCounter = 2;
57
+                        aConsole.println("ENGLISH! Do you speak it?!");
58
+                        responseCounter++;
59
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
60
+                        choice = aConsole.getIntInput("Enter your choice");
61
+                        if (choice == 4) {
62
+                            aGame = new Yahtzee(aPlayer);
63
+                            aGame.playGame();
64
+                            played = true;
65
+                        }
66
+
67
+                        responseCounter = 3;
68
+                        aConsole.println("You still have exactly ZERO chips. I don't think you're understanding this.");
69
+                        responseCounter++;
70
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
71
+                        choice = aConsole.getIntInput("Enter your choice");
72
+                        if (choice == 4) {
73
+                            aGame = new Yahtzee(aPlayer);
74
+                            aGame.playGame();
75
+                            played = true;
76
+                        }
77
+
78
+                        responseCounter = 4;
79
+                        aConsole.println("Listen, I know you're only " + aPlayer.getAge() + ". You're not getting these chips, buddy.");
80
+                        responseCounter++;
81
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
82
+                        choice = aConsole.getIntInput("Enter your choice");
83
+                        if (choice == 4) {
84
+                            aGame = new Yahtzee(aPlayer);
85
+                            aGame.playGame();
86
+                            played = true;
87
+                        }
88
+
89
+                        responseCounter = 5;
90
+                        aConsole.println("No chips.");
91
+                        responseCounter++;
92
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
93
+                        choice = aConsole.getIntInput("Enter your choice");
94
+                        if (choice == 4) {
95
+                            aGame = new Yahtzee(aPlayer);
96
+                            aGame.playGame();
97
+                            played = true;
98
+                        }
99
+
100
+                        responseCounter = 6;
101
+                        aConsole.println("Still no chips.");
102
+                        responseCounter++;
103
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
104
+                        choice = aConsole.getIntInput("Enter your choice");
105
+                        if (choice == 4) {
106
+                            aGame = new Yahtzee(aPlayer);
107
+                            aGame.playGame();
108
+                            played = true;
109
+                        }
110
+
111
+                        responseCounter = 7;
112
+                        aConsole.println("Don't make me call you mom.");
113
+                        responseCounter++;
114
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
115
+                        choice = aConsole.getIntInput("Enter your choice");
116
+                        if (choice == 4) {
117
+                            aGame = new Yahtzee(aPlayer);
118
+                            aGame.playGame();
119
+                            played = true;
120
+                        }
121
+
122
+                        responseCounter = 8;
123
+                        aConsole.println("Were you born yesterday?");
124
+                        responseCounter++;
125
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
126
+                        choice = aConsole.getIntInput("Enter your choice");
127
+                        if (choice == 4) {
128
+                            aGame = new Yahtzee(aPlayer);
129
+                            aGame.playGame();
130
+                            played = true;
131
+                        }
132
+
133
+                        responseCounter = 9;
134
+                        aConsole.println("What's your name? " + aPlayer.getName() + " is it? Dumb name.");
135
+                        responseCounter++;
136
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
137
+                        choice = aConsole.getIntInput("Enter your choice");
138
+                        if (choice == 4) {
139
+                            aGame = new Yahtzee(aPlayer);
140
+                            aGame.playGame();
141
+                            played = true;
142
+                        }
143
+
144
+                        responseCounter = 10;
145
+                        aConsole.println("You're getting on my nerves " + aPlayer.getName().toUpperCase() + ". Now scram!");
146
+                        responseCounter++;
147
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
148
+                        choice = aConsole.getIntInput("Enter your choice");
149
+                        if (choice == 4) {
150
+                            aGame = new Yahtzee(aPlayer);
151
+                            aGame.playGame();
152
+                            played = true;
153
+                        }
154
+
155
+                        responseCounter = 11;
156
+                        aConsole.println("I hate you.");
157
+                        responseCounter++;
158
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
159
+                        choice = aConsole.getIntInput("Enter your choice");
160
+                        if (choice == 4) {
161
+                            aGame = new Yahtzee(aPlayer);
162
+                            aGame.playGame();
163
+                            played = true;
164
+                        }
165
+
166
+                        responseCounter = 12;
167
+                        aConsole.println("I'm goddamn serious man, I'm not giving you any chips.\nYou're not 21, and I'm not losing my sweet gig as a croupier's assistant giving away chips to some " +
168
+                                aPlayer.getAge() + " year old named " + aPlayer.getName() + "!");
169
+                        responseCounter++;
170
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
171
+                        choice = aConsole.getIntInput("Enter your choice");
172
+                        if (choice == 4) {
173
+                            aGame = new Yahtzee(aPlayer);
174
+                            aGame.playGame();
175
+                            played = true;
176
+                        }
177
+
178
+                        responseCounter = 13;
179
+                        aConsole.println("Listen guy, do I need to get the bouncer over here?\nI'll do it, I'll get 'em!");
180
+                        responseCounter++;
181
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
182
+                        choice = aConsole.getIntInput("Enter your choice");
183
+                        if (choice == 4) {
184
+                            aGame = new Yahtzee(aPlayer);
185
+                            aGame.playGame();
186
+                            played = true;
187
+                        }
188
+
189
+                        responseCounter = 14;
190
+                        aConsole.println("This is your final warning, " + aPlayer.getName() + ". I'm really a nice guy, don't make me do this.");
191
+                        responseCounter++;
192
+                        aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
193
+                        choice = aConsole.getIntInput("Enter your choice");
194
+                        if (choice == 4) {
195
+                            aGame = new Yahtzee(aPlayer);
196
+                            aGame.playGame();
197
+                            played = true;
198
+                        }
199
+
200
+                        if (responseCounter == 15) {
201
+                            aConsole.println("Okay wise guy, you're OUTTA HERE!\n");
202
+                            aConsole.println("[You've been thrown out of the casino by a croupier’s assistant. Are you proud of yourself?]\n(You shouldn't be)");
203
+                            System.exit(0);
204
+                            }
205
+
206
+
207
+
208
+                    }
38 209
                     aConsole.println("4.Yahtzee\n5.Buy more Chips\n6.Cash Out\n\n");
39 210
                     choice = aConsole.getIntInput("Enter your choice");
40 211
                 }