Skip to content

Commit

Permalink
small fix for error in enter pos mode (was: left click on piece, rele…
Browse files Browse the repository at this point in the history
…ase on same square. afterwards grabbed piece was not drawn anymore)
  • Loading branch information
asdfjkl committed Jul 16, 2022
1 parent 717a0ad commit 7080382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/java/org/asdfjkl/jerryfx/gui/EnterPosBoard.java
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ void handleMouseRelease(MouseEvent e) {
// piece-image from the canvas. (There is a case where we press the
// mouse-button on a piece, drag it around, return to the original square
// and release the mouse-button.)
// we still need to reset the grabbed Piece
grabbedPiece.reset();
updateCanvas(); // no board-change
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/asdfjkl/jerryfx/gui/GameModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private String getStockfishPath() {
File tmp = (new File(jarPath));
if(tmp.getParentFile().exists()) {
File subEngine = new File(tmp.getParentFile(), "engine");
stockfishPath = new File(subEngine, "stockfish_14.1.exe").getPath();
stockfishPath = new File(subEngine, "stockfish_15.exe").getPath();
return stockfishPath;
}
}
Expand Down

0 comments on commit 7080382

Please sign in to comment.