diff --git a/CHANGELOG.md b/CHANGELOG.md index 139c8ec9e..17768885b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Pressing the start button in ColorMyWorld activity immediately shows "Congratulations! You finished!" #1691 - Broken dialog box on first screen tutorial #1418 - Sample values in Chart activity are not initialized #1695 +- No Move Hint for "En passant" in Chess Activity #1707 ## [1.8.0] - 2024-04-10 ### Added diff --git a/activities/Chess.activity/js/chessGame.js b/activities/Chess.activity/js/chessGame.js index 6781850de..fa43e7dbb 100644 --- a/activities/Chess.activity/js/chessGame.js +++ b/activities/Chess.activity/js/chessGame.js @@ -508,7 +508,7 @@ var ChessGame = { // get list of possible moves for this square var moves = []; p4_prepare(this.state); - var allMoves = p4_parse(this.state, this.state.to_play, undefined, 0); + var allMoves = p4_parse(this.state, this.state.to_play,this.state.enpassant, 0); for (var i = 0; i < allMoves.length; i++) { if (p4_stringify_point(allMoves[i][1]) == square) {