export default class AlapoRules extends ChessRules {
+ static get Options() {
+ return {
+ select: C.Options.select,
+ styles: C.Options.styles.filter(s => s != "teleport")
+ };
+ }
+
get hasFlags() {
return false;
}
won[c] = this.board[goal].some((b,j) => {
return (
this.getColor(goal, j) == c &&
- this.findCapturesOn(
- [goal, j], {one: true, oppCol: oppCol}).length == 0
+ !this.findCapturesOn(
+ [goal, j],
+ {
+ one: true,
+ oppCol: oppCol,
+ segments: this.options["cylinder"]
+ }
+ )
);
});
}