Skip to content

Commit

Permalink
#157 Add AIPLayerDL to supported players
Browse files Browse the repository at this point in the history
  • Loading branch information
b0n541 committed Jan 13, 2025
1 parent 942875a commit 98acd0d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions jskat-base/src/main/java/org/jskat/control/JSkatMaster.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,12 @@ public void invitePlayer() {
* @param onlyPlayRamsch TRUE, if only Ramsch games should be played
* @param sleeps Milliseconds to wait after a games ends during a series
*/
public void startSeries(final List<String> allPlayer, final List<String> playerNames, final int numberOfRounds,
public void startSeries(final List<String> allPlayer,
final List<String> playerNames,
final int numberOfRounds,
final boolean unlimited,
final boolean onlyPlayRamsch, final int sleeps) {
final boolean onlyPlayRamsch,
final int sleeps) {

log.debug(data.getActiveTable());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public class JSkatPlayerResolver {
public static Set<String> getAllAIPlayerImplementations() {
return Set.of(
"org.jskat.ai.rnd.AIPlayerRND",
"org.jskat.ai.newalgorithm.AlgorithmAI"
"org.jskat.ai.newalgorithm.AlgorithmAI",
"org.jskat.ai.deeplearning.AIPLayerDL"
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public class SkatSeriesStartDialog extends JDialog implements ActionListener {

private static final String PLAYER1_DEFAULT_NAME = "Jan";
private static final String PLAYER2_DEFAULT_NAME = "Markus";
private static final String PLAYER3_DEFAULT_NAME = System
.getProperty("user.name");
private static final String PLAYER3_DEFAULT_NAME = System.getProperty("user.name");

private final Component parent;

Expand Down Expand Up @@ -178,7 +177,7 @@ private class PlayerTypeComboBoxRenderer extends AbstractI18NComboBoxRenderer {
private final String AI_CLASS_NEW_ALGORITHMIC = "org.jskat.ai.newalgorithm.AlgorithmAI";
private final String AI_CLASS_ALGORITHMIC = "org.jskat.ai.mjl.AIPlayerMJL";
private final String AI_CLASS_RANDOM = "org.jskat.ai.rnd.AIPlayerRND";
private final String AI_CLASS_NEURAL_NETWORK = "org.jskat.ai.nn.AIPlayerNN";
private final String AI_CLASS_NEURAL_NETWORK = "org.jskat.ai.deeplearning.AIPlayerDL";
private final String AI_CLASS_HUMAN = "org.jskat.gui.human.SwingHumanPlayer";

PlayerTypeComboBoxRenderer() {
Expand Down

0 comments on commit 98acd0d

Please sign in to comment.