Skip to content

Commit

Permalink
updated example AI code for Ludii 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisSoemers committed May 28, 2021
1 parent c755388 commit 358dd18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/mcts/ExampleDUCT.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import game.Game;
import main.collections.FastArrayList;
import other.AI;
import other.RankUtils;
import other.action.Action;
import other.context.Context;
import other.move.Move;
Expand Down Expand Up @@ -113,7 +114,7 @@ public ExampleDUCT()

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

// Backpropagate utilities through the tree
while (current != null)
Expand Down
4 changes: 2 additions & 2 deletions src/mcts/ExampleUCT.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import game.Game;
import main.collections.FastArrayList;
import other.AI;
import other.RankUtils;
import other.context.Context;
import other.move.Move;
import utils.AIUtils;

/**
* A simple example implementation of a standard UCT approach.
Expand Down Expand Up @@ -106,7 +106,7 @@ public ExampleUCT()

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

// Backpropagate utilities through the tree
while (current != null)
Expand Down

0 comments on commit 358dd18

Please sign in to comment.