From 4194b03e980ac68e0fd07e183189fbe93dfefdce Mon Sep 17 00:00:00 2001 From: IgrisBRC Date: Sun, 14 Jul 2024 13:43:36 +0530 Subject: finnnallyyyy... added make move to the game, its a bit shitty, i'll make it prettier later --- public/make_move.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'public/make_move.js') diff --git a/public/make_move.js b/public/make_move.js index ec0956d..562505f 100644 --- a/public/make_move.js +++ b/public/make_move.js @@ -1,5 +1,6 @@ function make_move(board, y ,x, new_y, new_x) { - let temp = board[y][x] + board[new_y][new_x] = board[y][x] board[y][x] = 0 - board[new_y][new_x] = temp } + +make_move(board,6,4,4,4) -- cgit v1.2.3