File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public class AI {
16
16
private int rows ;
17
17
private int cols ;
18
18
private Random random = new Random ();
19
- private Path pathForMyUnits ;
19
+ private int pathIdForMyUnits ;
20
20
21
21
public void pick (World world ) {
22
22
System .out .println ("pick started" );
@@ -39,7 +39,7 @@ public void pick(World world) {
39
39
world .chooseHand (myDeck );
40
40
41
41
//other preprocess
42
- pathForMyUnits = world .getFriend ().getPathsFromPlayer ().get (0 );
42
+ pathIdForMyUnits = world .getFriend ().getPathsFromPlayer ().get (0 ). getId ( );
43
43
}
44
44
45
45
public void turn (World world ) {
@@ -51,7 +51,7 @@ public void turn(World world) {
51
51
// play all of hand once your ap reaches maximum. if ap runs out, putUnit doesn't do anything
52
52
if (myself .getAp () == maxAp ) {
53
53
for (BaseUnit baseUnit : myself .getHand ())
54
- world .putUnit (baseUnit , pathForMyUnits );
54
+ world .putUnit (baseUnit , pathIdForMyUnits );
55
55
}
56
56
57
57
// this code tries to cast the received spell
You can’t perform that action at this time.
0 commit comments