|
@@ -13,35 +13,35 @@ public class Printer {
|
13
|
13
|
}
|
14
|
14
|
games = games.trim();
|
15
|
15
|
|
16
|
|
- System.out.println("Sorry, there is no game with that name, try one of: " + games);
|
|
16
|
+ printMessage("Sorry, there is no game with that name, try one of: " + games);
|
17
|
17
|
}
|
18
|
18
|
|
19
|
19
|
public static void getBet(String phrase){
|
20
|
|
- System.out.println("What is the " + phrase + " at the table you're looking for?");
|
|
20
|
+ printMessage("What is the " + phrase + " at the table you're looking for?");
|
21
|
21
|
}
|
22
|
22
|
|
23
|
23
|
public static void unacceptableMaxBet(int minBet){
|
24
|
|
- System.out.println("Your bet must be above " + minBet);
|
|
24
|
+ printMessage("Your bet must be above " + minBet);
|
25
|
25
|
}
|
26
|
26
|
|
27
|
27
|
public static void unacceptableMinBet(){
|
28
|
|
- System.out.println("Your bet must be above $0");
|
|
28
|
+ printMessage("Your bet must be above $0");
|
29
|
29
|
}
|
30
|
30
|
|
31
|
31
|
public static void studHandsDealt(){
|
32
|
|
- System.out.println("Each player Dealt 3 cards");
|
|
32
|
+ printMessage("Each player Dealt 3 cards");
|
33
|
33
|
}
|
34
|
34
|
|
35
|
35
|
public static void showCard(Player player, Card card){
|
36
|
|
- System.out.println(player.getName() + " shows a " + card.getName());
|
|
36
|
+ printMessage(player.getName() + " shows a " + card.getName());
|
37
|
37
|
}
|
38
|
38
|
|
39
|
39
|
public static void pickGameMsg(){
|
40
|
|
- System.out.println("Please choose a game to play!");
|
|
40
|
+ printMessage("Please choose a game to play!");
|
41
|
41
|
}
|
42
|
42
|
|
43
|
43
|
public static void closeGameMsg(){
|
44
|
|
- System.out.println("Thanks for your money chump!");
|
|
44
|
+ printMessage("Thanks for your money chump!");
|
45
|
45
|
}
|
46
|
46
|
|
47
|
47
|
public static void printMessage(String string) {
|
|
@@ -49,7 +49,15 @@ public class Printer {
|
49
|
49
|
}
|
50
|
50
|
|
51
|
51
|
public static void pleaseEnterNum(){
|
52
|
|
- System.out.println("Please enter a number");
|
|
52
|
+ printMessage("Please enter a number");
|
|
53
|
+ }
|
|
54
|
+
|
|
55
|
+ public static void welcomeTo(String gameName){
|
|
56
|
+ printMessage("Welcome to " + gameName + "!");
|
|
57
|
+ }
|
|
58
|
+
|
|
59
|
+ public static void wrongCommand(){
|
|
60
|
+ printMessage("Sorry, there is no game with that name.")
|
53
|
61
|
}
|
54
|
62
|
|
55
|
63
|
|