Fix typo in Zen getNotation()
authorBenjamin Auder <benjamin.auder@somewhere>
Sat, 17 Nov 2018 13:49:38 +0000 (14:49 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Sat, 17 Nov 2018 13:49:38 +0000 (14:49 +0100)
public/javascripts/variants/Zen.js

index 54c77ad..d9e2294 100644 (file)
@@ -224,7 +224,7 @@ class ZenRules extends ChessRules
                        String.fromCharCode(97 + move.end.y) + (VariantRules.size[0]-move.end.x);
 
                let notation = "";
-               let piece = this.rules.getPiece(move.start.x, move.start.y);
+               let piece = this.getPiece(move.start.x, move.start.y);
                if (piece == VariantRules.PAWN)
                {
                        // pawn move (TODO: enPassant indication)