-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.java
More file actions
30 lines (25 loc) · 849 Bytes
/
Main.java
File metadata and controls
30 lines (25 loc) · 849 Bytes
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
// import java.util.*;
public class Main {
private static void configureDiagnostics(String[] args) {
for (String arg : args) {
if (arg == null) {
continue;
}
if (arg.equalsIgnoreCase("--diag")) {
System.setProperty("poker.diag", "true");
}
}
}
public static void main(String[] args) {
configureDiagnostics(args);
Casino casino = new Casino();
casino.start();
// testing for pots, do not delete
// PokerPlayer[] d = {new PokerPlayer("zuowen"), new PokerBot(), new PokerBot(), new PokerBot(), new PokerBot()};
// for (int i = 0; i < d.length-1; i++) d[i].removeChips(d[i].getChips());
// System.out.println(Arrays.toString(d));
// PokerPot p = new PokerPot(d);
// p.setCont(new int[]{50, 50, 100, 100, 200});
// System.out.println(p.toString());
}
}