diff options
Diffstat (limited to 'public/make_move.js')
-rw-r--r-- | public/make_move.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/public/make_move.js b/public/make_move.js new file mode 100644 index 0000000..ec0956d --- /dev/null +++ b/public/make_move.js @@ -0,0 +1,5 @@ +function make_move(board, y ,x, new_y, new_x) { + let temp = board[y][x] + board[y][x] = 0 + board[new_y][new_x] = temp +} |