From 06a3ec0da64e1eab83bcdc540e332939d4b37b49 Mon Sep 17 00:00:00 2001 From: IgrisBRC Date: Sun, 14 Jul 2024 11:43:10 +0530 Subject: added color to pieces and made to_move --- public/board.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/board.js') diff --git a/public/board.js b/public/board.js index e0f0cbe..2484136 100644 --- a/public/board.js +++ b/public/board.js @@ -15,7 +15,7 @@ for (let i = 0; i < squares.length; i++) { square.push(id.charAt(0).charCodeAt(0) - 97) - let moves = move(board, square[0], square[1]) + let moves = move(board, square[0], square[1], to_move) for (let i = 0; i < previously_highlighted_squares.length; i++) { -- cgit v1.2.3