mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
Infinite game collection
This commit is contained in:
@@ -44,7 +44,6 @@ public class AITest {
|
||||
versions[2] = new ArtificialPlayer(new MCTSAI3(5), "MCTS V3");
|
||||
versions[3] = new ArtificialPlayer(new MCTSAI4(5), "MCTS V4");
|
||||
|
||||
for (int k = 0; k < 50; k++) {
|
||||
for (int i = 0; i < versions.length; i++) {
|
||||
for (int j = i + 1; j < versions.length; j++) {
|
||||
final int playerIndex1 = i % versions.length;
|
||||
@@ -54,7 +53,6 @@ public class AITest {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void addMatch(ArtificialPlayer v1, ArtificialPlayer v2) {
|
||||
matchupList.add(new Matchup(v1, v2));
|
||||
@@ -70,10 +68,12 @@ public class AITest {
|
||||
|
||||
@Test
|
||||
public void testAIvsAI() {
|
||||
while (true) {
|
||||
for (Matchup m : matchupList) {
|
||||
playGame(m);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void playGame(Matchup m) {
|
||||
long millisecondscounterAI1 = 0L;
|
||||
|
||||
Reference in New Issue
Block a user