diff options
author | IgrisBRC <[email protected]> | 2024-07-22 22:49:50 +0530 |
---|---|---|
committer | IgrisBRC <[email protected]> | 2024-07-22 22:49:50 +0530 |
commit | dc28b34f7751fa9ebb8a554c03dec2c1aaaa720d (patch) | |
tree | f1f2bb1ebc138df46f36912b6c36e42d6c79a302 /public/move.js | |
parent | 0cc9e827b6482571422c17a375d362d7568a40fd (diff) |
added promotion
Diffstat (limited to 'public/move.js')
-rw-r--r-- | public/move.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/public/move.js b/public/move.js index d95f3f6..5b2ea58 100644 --- a/public/move.js +++ b/public/move.js @@ -23,7 +23,9 @@ let castle_black_long = true let en_passant = -1 let en_passant_move = -1 -function check_check(board, to_move, check) { +let promotion = 0 + +function check_check(board, to_move) { let king_position = [] if (!to_move) { @@ -572,3 +574,5 @@ function amelia_move(board, y, x) { return moves } + + |