diff options
author | IgrisBRC <[email protected]> | 2024-07-14 11:43:10 +0530 |
---|---|---|
committer | IgrisBRC <[email protected]> | 2024-07-14 11:43:10 +0530 |
commit | 06a3ec0da64e1eab83bcdc540e332939d4b37b49 (patch) | |
tree | 0a74d625654235b39c85105fe6ff291885aa9838 /public/board.js | |
parent | c5de8054793b54567e778935986e16741bdacad0 (diff) |
added color to pieces and made to_move
Diffstat (limited to 'public/board.js')
-rw-r--r-- | public/board.js | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |