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/current/doc/scripts/common.css?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