Skip to content

Commit

Permalink
Adapts to jchess-uci-client changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fathzer committed May 9, 2024
1 parent 90b9574 commit 96c36df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/com/fathzer/jchess/bot/uci/UCIEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ public class UCIEngine extends com.fathzer.uci.client.UCIEngine implements Engin
TO_UCI.put(Variant.CHESS960, com.fathzer.uci.client.Variant.CHESS960);
}

private final EngineData data;
private EngineData data;

public UCIEngine(EngineData data) throws IOException {
super(Arrays.asList(data.getCommand()));
this.data = data;
super(Arrays.asList(data.getCommand()), e -> ((UCIEngine)e).data=data);
}


@Override
public boolean isSupported(Variant variant) {
return super.isSupported(TO_UCI.get(variant));
Expand Down

0 comments on commit 96c36df

Please sign in to comment.