Skip to content

Commit

Permalink
En-passant highlight implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
SnehalSrivastava27 committed Jan 18, 2025
1 parent b4e9959 commit 25d1249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activities/Chess.activity/js/chessGame.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 25d1249

Please sign in to comment.