ac5ccffc2e987ce6c1b8bb8ac8ed9b14047b36f3
1 import ChessRules
from "/base_rules.js";
3 export default class MadrasiRules
extends ChessRules
{
7 select: C
.Options
.select
,
15 ].concat(C
.Options
.input
),
16 styles: C
.Options
.styles
.filter(s
=> s
!= "madrasi")
21 o
.options
["madrasi"] = true;
25 canTake([x1
, y1
], [x2
, y2
]) {
28 !this.options
["rexincl"] ||
29 this.getPiece(x1
, y1
) != 'k' ||
30 this.getPiece(x2
, y2
) != 'k'
33 super.canTake([x1
, y1
], [x2
, y2
])