mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 02:44:50 +00:00
fixed things
This commit is contained in:
@@ -84,13 +84,13 @@ public class LocalMultiplayerView extends ViewWidget {
|
|||||||
if (information.players[0].isHuman) {
|
if (information.players[0].isHuman) {
|
||||||
players[0] = new LocalPlayer(information.players[0].name);
|
players[0] = new LocalPlayer(information.players[0].name);
|
||||||
} else {
|
} else {
|
||||||
players[0] = new ArtificialPlayer(new RandomAI(), "Random AI");
|
// players[0] = new ArtificialPlayer(new RandomAI(), "Random AI");
|
||||||
// players[0] = new ArtificialPlayer(new MCTSAI4(500, 4), "MCTS V4 AI");
|
players[0] = new ArtificialPlayer(new MCTSAI4(500, 4), "MCTS V4 AI");
|
||||||
}
|
}
|
||||||
if (information.players[1].isHuman) {
|
if (information.players[1].isHuman) {
|
||||||
players[1] = new LocalPlayer(information.players[1].name);
|
players[1] = new LocalPlayer(information.players[1].name);
|
||||||
} else {
|
} else {
|
||||||
players[1] = new ArtificialPlayer(new OPMCTSAI(500), "OP MCTS AI");
|
players[1] = new ArtificialPlayer(new MCTSAI1(500), "MCTS V1 AI");
|
||||||
}
|
}
|
||||||
if (AppSettings.getSettings().getTutorialFlag() && AppSettings.getSettings().getFirstReversi()) {
|
if (AppSettings.getSettings().getTutorialFlag() && AppSettings.getSettings().getFirstReversi()) {
|
||||||
new ShowEnableTutorialWidget(
|
new ShowEnableTutorialWidget(
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public class MCTSAI1 extends MCTSAI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lastIterations = root.visits;
|
lastIterations = root.visits;
|
||||||
|
IO.println("V1: " + lastIterations);
|
||||||
|
|
||||||
final Node mostVisitedChild = mostVisitedChild(root);
|
final Node mostVisitedChild = mostVisitedChild(root);
|
||||||
return mostVisitedChild.move;
|
return mostVisitedChild.move;
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ public class MCTSAI2 extends MCTSAI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lastIterations = root.visits;
|
lastIterations = root.visits;
|
||||||
|
IO.println("V2: " + lastIterations);
|
||||||
|
|
||||||
final Node mostVisitedChild = mostVisitedChild(root);
|
final Node mostVisitedChild = mostVisitedChild(root);
|
||||||
final long move = mostVisitedChild.move;
|
final long move = mostVisitedChild.move;
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ public class MCTSAI3 extends MCTSAI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lastIterations = root.visits;
|
lastIterations = root.visits;
|
||||||
|
IO.println("V3: " + lastIterations);
|
||||||
|
|
||||||
final Node mostVisitedChild = mostVisitedChild(root);
|
final Node mostVisitedChild = mostVisitedChild(root);
|
||||||
return mostVisitedChild.move;
|
return mostVisitedChild.move;
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ public class MCTSAI4 extends MCTSAI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lastIterations = root.visits;
|
lastIterations = root.visits;
|
||||||
|
IO.println("V4: " + lastIterations);
|
||||||
|
|
||||||
final Node mostVisitedChild = mostVisitedChild(root);
|
final Node mostVisitedChild = mostVisitedChild(root);
|
||||||
final long move = mostVisitedChild.move;
|
final long move = mostVisitedChild.move;
|
||||||
|
|||||||
Reference in New Issue
Block a user