summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authoramanjain1644 <[email protected]>2024-07-12 13:07:51 +0530
committeramanjain1644 <[email protected]>2024-07-12 13:07:51 +0530
commitee354fe80acadc0a8df5c34ed916b895fa10fb12 (patch)
tree757c2ead9367052ba3c28af084298d89df1f5221 /app.js
parentbfa0b985607ab325117b329801eb16b37aed683c (diff)
pawn move added
Diffstat (limited to 'app.js')
-rw-r--r--app.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/app.js b/app.js
index ebf0afc..7437c72 100644
--- a/app.js
+++ b/app.js
@@ -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 = []