diff options
author | IgrisBRC <[email protected]> | 2024-07-15 17:18:34 +0530 |
---|---|---|
committer | IgrisBRC <[email protected]> | 2024-07-15 17:18:34 +0530 |
commit | 6a44c47fcef5f645879780b0b5f287cfb60be088 (patch) | |
tree | 511dd73d4e81622a209a8436a06f1214ba61940a /public/make_move.js | |
parent | be017de1e5c267c922c60587fea1959ddb350c30 (diff) |
added check detection, for now only console loggin when check
Diffstat (limited to 'public/make_move.js')
-rw-r--r-- | public/make_move.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/public/make_move.js b/public/make_move.js index 16d738b..07211dc 100644 --- a/public/make_move.js +++ b/public/make_move.js @@ -1,5 +1,11 @@ function make_move(board, y ,x, new_y, new_x) { board[new_y][new_x] = board[y][x] board[y][x] = 0 + + check = check_check(board, to_move, check) + + if (check) { + console.log("check") + } } |