static get Options() {
return {
select: C.Options.select,
- check: [
+ input: [
{
label: "Balanced",
- defaut: false,
- variable: "rempawn"
- },
- {
- label: "Falling pawn",
- defaut: false,
- variable: "pawnfall"
+ variable: "rempawn",
+ type: "checkbox",
+ defaut: false
}
- ],
+ ].concat(C.Options.input.filter(i => i.variable == "pawnfall")),
styles: C.Options.styles.filter(s => s != "atomic")
};
}
canIplay(x, y) {
if (this.options["rempawn"] && this.movesCount == 0)
- return (this.turn == side && this.getPiece(x, y) == "p");
+ return (this.playerColor == this.turn && this.getPiece(x, y) == "p");
return super.canIplay(x, y);
}
c: c
})
],
- start: { x: x, y: y },
- end: { x: x, y: y }
+ start: {x: x, y: y},
+ end: {x: x, y: y}
})
];
}