diff options
author | amanjain1644 <[email protected]> | 2024-07-12 15:15:13 +0530 |
---|---|---|
committer | amanjain1644 <[email protected]> | 2024-07-12 15:15:13 +0530 |
commit | bb1ce7fe68a374f60b5cf85db318478f57beb0b9 (patch) | |
tree | 6ac322f2638ad654146ba5d27e0e37e53eea2ffa /app.js | |
parent | 5460f45a33c8cfd423e3d84c6bf082f7a55dc4e7 (diff) |
modified the chess board
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -1,32 +1,20 @@ let board = [ -<<<<<<< Updated upstream - [0, 0, 0, 0, 0, 0, 0, 0], - [0, 0, 0, 0, 0, 0, 0, 0], - [0, 0, 0, 0, 0, 0, 0, 0], - [0, 0, 0, 0, 0, 0, 0, 0], - [0, 0, 0, 0, 0, 0, 0, 0], -======= [0, 1, 0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0, 0], [0, 0, 1, 2, 1, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0, 0], ->>>>>>> Stashed changes [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], ] -<<<<<<< Updated upstream -console.log(amelia_move(board, 7, 7)) -======= console.log(board.length) console.log(amelia_move(board, 0,0)) ->>>>>>> Stashed changes function pawn_move(board, y, x) { let moves = [] |