summaryrefslogtreecommitdiff
path: root/pawns_move.js
diff options
context:
space:
mode:
authorIgrisBRC <[email protected]>2024-07-12 16:17:52 +0530
committerGitHub <[email protected]>2024-07-12 16:17:52 +0530
commit525b12914d96e59c38bc048f791de1577a294077 (patch)
tree299e14df2b673769adfee1e8f6c1104dd0413afe /pawns_move.js
parentb7af2f91f2115405155d244c09fbdd757b6de24c (diff)
parentd865daddd654a3ed338e8a552771fc97aaa404e1 (diff)
Merge pull request #2 from AmanJain1644/main
chessboard updated
Diffstat (limited to 'pawns_move.js')
-rw-r--r--pawns_move.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/pawns_move.js b/pawns_move.js
new file mode 100644
index 0000000..f304608
--- /dev/null
+++ b/pawns_move.js
@@ -0,0 +1,7 @@
+function pawn_move(board, y, x){
+ let moves =[];
+ // * if pawn at row 1 or at row 6 it has to choice
+ if(x<board.length && x >-1 && y<board.length && y>-1){
+ moves.push()
+ }
+} \ No newline at end of file