From ff3f02dddcb979da7c5df14ba0279f5968c9e7d8 Mon Sep 17 00:00:00 2001 From: IgrisBRC Date: Mon, 15 Jul 2024 11:22:02 +0530 Subject: fixed fault functionality, by changing for charAt to charCodeAt --- public/move.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/move.js') diff --git a/public/move.js b/public/move.js index 51b585c..ee527c6 100644 --- a/public/move.js +++ b/public/move.js @@ -11,8 +11,8 @@ let board = [ let to_move = true //white to move -//console.log(move(board, 4, 3)) -//move(board, 3, 3) +//console.log(board[7][1]) +//console.log(move(board, 7, 1, to_move)) function move(board, y, x, to_move) { if (to_move ^ board[y][x] > 0) { -- cgit v1.2.3