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 /pawns_move.js | |
parent | bfa0b985607ab325117b329801eb16b37aed683c (diff) |
pawn move added
Diffstat (limited to 'pawns_move.js')
-rw-r--r-- | pawns_move.js | 7 |
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 |