Skip to content

Commit 358dd18

Browse files
committed
updated example AI code for Ludii 1.2.0
1 parent c755388 commit 358dd18

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/mcts/ExampleDUCT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import game.Game;
1010
import main.collections.FastArrayList;
1111
import other.AI;
12+
import other.RankUtils;
1213
import other.action.Action;
1314
import other.context.Context;
1415
import other.move.Move;
@@ -113,7 +114,7 @@ public ExampleDUCT()
113114

114115
// This computes utilities for all players at the of the playout,
115116
// which will all be values in [-1.0, 1.0]
116-
final double[] utilities = AIUtils.utilities(contextEnd);
117+
final double[] utilities = RankUtils.utilities(contextEnd);
117118

118119
// Backpropagate utilities through the tree
119120
while (current != null)

src/mcts/ExampleUCT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import game.Game;
88
import main.collections.FastArrayList;
99
import other.AI;
10+
import other.RankUtils;
1011
import other.context.Context;
1112
import other.move.Move;
12-
import utils.AIUtils;
1313

1414
/**
1515
* A simple example implementation of a standard UCT approach.
@@ -106,7 +106,7 @@ public ExampleUCT()
106106

107107
// This computes utilities for all players at the of the playout,
108108
// which will all be values in [-1.0, 1.0]
109-
final double[] utilities = AIUtils.utilities(contextEnd);
109+
final double[] utilities = RankUtils.utilities(contextEnd);
110110

111111
// Backpropagate utilities through the tree
112112
while (current != null)

0 commit comments

Comments
 (0)