diff options
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") + } } |