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/js/%7B%7B%20path%28%27fos_user_change_password%27%29%20%7D%7D?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