Skip to content

Commit c755388

Browse files
committed
updated code for Ludii v1.1.17
1 parent 1794a52 commit c755388

File tree

7 files changed

+31
-27
lines changed

7 files changed

+31
-27
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ Alternatively, the following email address may be used: `ludii(dot)games(at)gmai
149149

150150
## Changelog
151151

152+
- 23 April, 2021: Updated repository for compatibility with new version 1.1.17 of Ludii.
152153
- 12 February, 2021: Updated repository for compatibility with new version 1.1.14 of Ludii.
153154
- 2 November, 2020: Updated repository for compatibility with new version 1.1.0 of Ludii.
154155
- 31 August, 2020: Updated repository for compatibility with new version 1.0.5 of Ludii.

src/experiments/RunCustomMatch.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
import java.util.List;
55

66
import game.Game;
7+
import other.AI;
8+
import other.GameLoader;
9+
import other.context.Context;
10+
import other.model.Model;
11+
import other.trial.Trial;
712
import random.RandomAI;
813
import search.mcts.MCTS;
9-
import util.AI;
10-
import util.Context;
11-
import util.GameLoader;
12-
import util.Trial;
13-
import util.model.Model;
14+
1415

1516
/**
1617
* An example of a custom implementation of a match between different AIs,

src/experiments/RunLudiiEvalGamesSet.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import java.util.Arrays;
44

5+
import other.AI;
56
import random.RandomAI;
67
import search.mcts.MCTS;
78
import supplementary.experiments.EvalGamesSet;
8-
import util.AI;
99

1010
/**
1111
* Example of an experiment that uses Ludii's built-in EvalGamesSet class to
@@ -31,10 +31,12 @@ public class RunLudiiEvalGamesSet
3131
static final int MAX_WALL_TIME = -1;
3232

3333
/** List of agents for playing the match */
34-
static final AI[] AGENTS = new AI[]{
35-
new RandomAI(),
36-
MCTS.createUCT()
37-
};
34+
static final AI[] AGENTS =
35+
new AI[]
36+
{
37+
new RandomAI(),
38+
MCTS.createUCT()
39+
};
3840

3941
//-------------------------------------------------------------------------
4042

src/experiments/Tutorial.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
import main.FileHandling;
1010
import main.collections.FastArrayList;
1111
import mcts.ExampleUCT;
12+
import other.AI;
13+
import other.GameLoader;
14+
import other.context.Context;
15+
import other.model.Model;
16+
import other.move.Move;
17+
import other.state.container.ContainerState;
18+
import other.trial.Trial;
1219
import random.RandomAI;
13-
import util.AI;
14-
import util.Context;
15-
import util.GameLoader;
16-
import util.Move;
17-
import util.Trial;
18-
import util.model.Model;
19-
import util.state.containerState.ContainerState;
2020

2121
/**
2222
* A simple tutorial that demonstrates a variety of useful methods provided

src/mcts/ExampleDUCT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
import game.Game;
1010
import main.collections.FastArrayList;
11-
import util.AI;
12-
import util.Context;
13-
import util.Move;
14-
import util.action.Action;
11+
import other.AI;
12+
import other.action.Action;
13+
import other.context.Context;
14+
import other.move.Move;
1515
import utils.AIUtils;
1616

1717
/**

src/mcts/ExampleUCT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
import game.Game;
88
import main.collections.FastArrayList;
9-
import util.AI;
10-
import util.Context;
11-
import util.Move;
9+
import other.AI;
10+
import other.context.Context;
11+
import other.move.Move;
1212
import utils.AIUtils;
1313

1414
/**

src/random/RandomAI.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
import game.Game;
66
import main.collections.FastArrayList;
7-
import util.AI;
8-
import util.Context;
9-
import util.Move;
7+
import other.AI;
8+
import other.context.Context;
9+
import other.move.Move;
1010
import utils.AIUtils;
1111

1212
/**

0 commit comments

Comments
 (0)