import { ChessRules } from "@/base_rules";
export class ExtinctionRules extends ChessRules {
+
static get PawnSpecs() {
return Object.assign(
{},
let pieces = {};
for (let row of rows) {
for (let i = 0; i < row.length; i++) {
- if (isNaN(parseInt(row[i])) && !pieces[row[i]])
+ if (isNaN(parseInt(row[i], 10)) && !pieces[row[i]])
pieces[row[i]] = true;
}
}
}
return super.evalPosition();
}
+
};