X-Git-Url: https://git.auder.net/assets/current/gitweb.js?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FSuicide.js;h=ecb2aef146e525c0ffc8a8173919bc952518a2df;hb=e50a802531b99829c533f22ecd21e359e7e1e049;hp=c81d35514ae193b715d4d0f23421ba31612b5add;hpb=6f2f94374f1e73c375edf732d9425e575e81fff7;p=vchess.git diff --git a/client/src/variants/Suicide.js b/client/src/variants/Suicide.js index c81d3551..ecb2aef1 100644 --- a/client/src/variants/Suicide.js +++ b/client/src/variants/Suicide.js @@ -7,10 +7,6 @@ export class SuicideRules extends ChessRules { return false; } - static get HasCastle() { - return false; - } - static get PawnSpecs() { return Object.assign( {}, @@ -33,7 +29,7 @@ export class SuicideRules 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; }