diff options
author | amanjain1644 <[email protected]> | 2024-07-12 13:07:51 +0530 |
---|---|---|
committer | amanjain1644 <[email protected]> | 2024-07-12 13:07:51 +0530 |
commit | ee354fe80acadc0a8df5c34ed916b895fa10fb12 (patch) | |
tree | 757c2ead9367052ba3c28af084298d89df1f5221 /app.js | |
parent | bfa0b985607ab325117b329801eb16b37aed683c (diff) |
pawn move added
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,17 +1,31 @@ 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], + [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 = [] |