From: Benjamin Auder Date: Sun, 6 Jan 2019 12:13:30 +0000 (+0100) Subject: Fix Dark enlightened array update X-Git-Url: https://git.auder.net/variants/Chakart/img/doc/scripts/getGraph_%22%20%20%20this.image%20%20%20%22.php?a=commitdiff_plain;h=f5722ecec4798fb46dc5c62ad4243139bcdd1032;p=vchess.git Fix Dark enlightened array update --- diff --git a/public/javascripts/variants/Dark.js b/public/javascripts/variants/Dark.js index f1bd6c0d..79d27b5b 100644 --- a/public/javascripts/variants/Dark.js +++ b/public/javascripts/variants/Dark.js @@ -16,14 +16,20 @@ class DarkRules extends ChessRules updateEnlightened() { - const pawnShift = {"w":-1, "b":1}; - // Initialize with pieces positions (which are seen) for (let i=0; i