X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=public%2Fjavascripts%2Fvariants%2FCheckered.js;h=b9e7223b58b5c70dbe4137e5c30c55babb208f01;hp=b702018a416112d194e88bf0037a73486de3ebd1;hb=098e8468ae7a52a55850c09f90506f52b8133567;hpb=c148615e9e7296869f95895ef434fd8371d637c2 diff --git a/public/javascripts/variants/Checkered.js b/public/javascripts/variants/Checkered.js index b702018a..b9e7223b 100644 --- a/public/javascripts/variants/Checkered.js +++ b/public/javascripts/variants/Checkered.js @@ -262,9 +262,11 @@ class CheckeredRules extends ChessRules notation = startColumn + "x" + finalSquare + "=" + move.appear[0].p.toUpperCase(); } else //no capture + { notation = finalSquare; - if (move.appear.length > 0 && piece != move.appear[0].p) //promotion - notation += "=" + move.appear[0].p.toUpperCase(); + if (move.appear.length > 0 && piece != move.appear[0].p) //promotion + notation += "=" + move.appear[0].p.toUpperCase(); + } return notation; }