From 25d1249bd06c1bbbb4d26570f7ac072920c5300c Mon Sep 17 00:00:00 2001 From: Snehal Srivastava <118104081+SnehalSrivastava27@users.noreply.github.com> Date: Sat, 18 Jan 2025 11:21:02 +0530 Subject: [PATCH 1/2] En-passant highlight implemented --- activities/Chess.activity/js/chessGame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { From 69c4e94a3c914e0c4fbf5a1ff2d6b1cbdaddbed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lionel=20Lask=C3=A9?= Date: Sun, 19 Jan 2025 10:38:15 +0100 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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