-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPrintHelper.java
More file actions
35 lines (28 loc) · 1.29 KB
/
PrintHelper.java
File metadata and controls
35 lines (28 loc) · 1.29 KB
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
public class PrintHelper {
public static void showFirstMsg() {
System.out.println("Welcome to Connect 4");
System.out.println("There are 3 players red, yellow and blue");
System.out.println("Player1 is Red, Computer1 is Yellow, Computer2 is blue");
System.out.println("To play the game type in the number of the column you want to drop you counter in");
System.out.println("A player wins by connecting 4 counters in a row - vertically, horizontally or diagonally");
System.out.println("");
}
public static void showConnectNumMsg() {
System.out.println("Please enter the number you want to connect to win. (2 < N < 7)");
}
public static void showConnectNErrorMsg() {
System.out.println("Please enter the number more than 2 and less than 7.");
}
public static void showWinMsg(String winnerName) {
System.out.println(winnerName + " Have Won!!!");
}
public static void integerOnlyMsg() {
System.out.println("Integers only, please.");
}
public static void showTurnMsg(String playerName) {
System.out.println("It's " + playerName + "'s turn.");
}
public static void showErrorUnabledPut() {
System.out.println("This row is full and unabled to put. Please try again.");
}
}