diff options
author | IgrisBRC <[email protected]> | 2024-07-14 13:43:36 +0530 |
---|---|---|
committer | IgrisBRC <[email protected]> | 2024-07-14 13:43:36 +0530 |
commit | 4194b03e980ac68e0fd07e183189fbe93dfefdce (patch) | |
tree | 79bbce279fa277aa34cc53e4818eca59b54f8963 /public/make_move.js | |
parent | 0f1250b0f879eb764559d80bbc8a54d53c221f68 (diff) |
finnnallyyyy... added make move to the game, its a bit shitty, i'll make it prettier later
Diffstat (limited to 'public/make_move.js')
-rw-r--r-- | public/make_move.js | 5 |
1 files changed, 3 insertions, 2 deletions
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) |