forked from bstrds/bckbn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest2.java
More file actions
34 lines (21 loc) · 669 Bytes
/
Test2.java
File metadata and controls
34 lines (21 loc) · 669 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
31
32
33
34
import java.util.ArrayList;
public class Test2 {
public static void main(String[] args) {
Board b = new Board();
b.print();
byte d1 = (byte)((Math.random()*6) + 1);
byte d2 = (byte)((Math.random()*6) + 1);
//d1 = d2 = 6;
System.out.println("\n\nWhite rolled "+d1+" and "+d2+"\n\n");
ArrayList<Board> children = b.getChildren(d1, d2, Board.B);
for (Board child : children) {
child.print();
System.out.println("Child Evaluation = "+child.evaluate());
}
Board c = new Board();
Board d = new Board();
int ch = c.hashCode();
int dh = d.hashCode();
System.out.println("c hash: "+ch+" dhash: "+dh);
}
}