-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTurtleGame.java
29 lines (26 loc) · 902 Bytes
/
TurtleGame.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
import java.io.IOException;
import com.items.RawItemNotAllowedException;
import com.test.Unitest;
import com.utils.ProjetInit;
public class TurtleGame {
public static void main(String[] argv) throws RawItemNotAllowedException, InterruptedException, IOException {
System.out.println("TURTLE GAME");
if(argv.length >= 1) {
System.out.println("Mode debug");
if(argv[0].equalsIgnoreCase("debug"))
{
new Unitest();
}
} else {
/**
* In there, we init all variable, all locations, all exits, all items
* And set all the connections between all objects.
*/
ProjetInit.init();
/**
* After the initialization, this command start the game, and the loop 'while'.
*/
ProjetInit.start();
}
}
}