From: Benjamin Auder Date: Thu, 13 Dec 2018 14:10:03 +0000 (+0100) Subject: Finish Ultima rules. Seems ok (still potential bugs) X-Git-Url: https://git.auder.net/img/css/pieces/cn.svg?a=commitdiff_plain;h=f4fd6580a227a352f6e0e95870954bc2fa2ce97f;p=vchess.git Finish Ultima rules. Seems ok (still potential bugs) --- diff --git a/public/javascripts/variants/Ultima.js b/public/javascripts/variants/Ultima.js index 57f3e25c..d5b9f884 100644 --- a/public/javascripts/variants/Ultima.js +++ b/public/javascripts/variants/Ultima.js @@ -53,36 +53,6 @@ class UltimaRules extends ChessRules // Is piece on square (x,y) immobilized? isImmobilized([x,y]) { - // Final check: is this knight immobilized? - let foundImmobilizer = false; - let neutralized = false; - outerLoop: - for (let step of steps) - { - const [i2,j2] = [i+step[0],j+step[1]]; - if (i2>=0 && i2=0 && j2=0 && i3=0 && j3=0 && i2=0 && j2=0 && i1=0 && i2=0 && j1=0 && j2=0 && j1=0 && j2=0 && i3=0 && j3=0 && i3=0 && j3