-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestMain.java
40 lines (29 loc) · 880 Bytes
/
TestMain.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
package tictactoe.game;
public class TestMain {
public static void main(String[] args) {
System.out.println("Beginning TestMain:\n");
System.out.println("1 - TestPlayer:\n");
TestPlayer tp = new TestPlayer();
tp.runTests();
System.out.println("TestPlayer Successful!\n\n");
System.out.println("2 - TestGrid:\n");
TestGrid();
System.out.println("TestGrid Successful!\n\n");
System.out.println("TestMain Complete!");
}
static void TestGrid() {
System.out.println("Beginning Test_GameGrid...");
Test_GameGrid testgrid = new Test_GameGrid();
testgrid.T_getMark();
testgrid.T_setX();
testgrid.T_setO();
System.out.println();
testgrid.demoFillX();
}
}
/*
Test using:
javac -g -d . TestMain.java Test_GameSquare.java GameSquare.java
java tictactoe.game.TestMain
Both from C:\...\PracticePrograms\
*/