X-Git-Url: https://git.auder.net/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FFootball.js;h=bde38e534d7233093d5702781bd460667e6817cf;hb=be3fb7b5de79dc2295d41b593faf18c6ed895e0d;hp=e7e65138b784fbe273919a0cf1f6d8026a374b12;hpb=ad030c7d24804fbfa06158e93d89a3f101d2c8b3;p=vchess.git diff --git a/client/src/variants/Football.js b/client/src/variants/Football.js index e7e65138..bde38e53 100644 --- a/client/src/variants/Football.js +++ b/client/src/variants/Football.js @@ -3,6 +3,7 @@ import { ArrayFun } from "@/utils/array"; import { shuffle } from "@/utils/alea"; export class FootballRules extends ChessRules { + static get HasFlags() { return false; } @@ -44,7 +45,7 @@ export class FootballRules extends ChessRules { pieces[row[i] == lowerRi ? "b" : "w"]++; sumElts++; } else { - const num = parseInt(row[i]); + const num = parseInt(row[i], 10); if (isNaN(num)) return false; sumElts += num; } @@ -112,4 +113,5 @@ export class FootballRules extends ChessRules { " w 0 -" ); } + };