Fix Dobutsu, extend Align4
[xogo.git] / variants / Recycle / class.js
CommitLineData
a7d09201
BA
1import ChessRules from "/base_rules.js";
2
3export default class RecycleRules extends ChessRules {
4
5 static get Options() {
6 return {
7 select: C.Options.select,
535c464b 8 input: [
a7d09201
BA
9 {
10 label: "Capture king",
535c464b
BA
11 variable: "taking",
12 type: "checkbox",
13 defaut: false
a7d09201
BA
14 },
15 {
16 label: "Falling pawn",
535c464b
BA
17 variable: "pawnfall",
18 type: "checkbox",
19 defaut: true
a7d09201
BA
20 }
21 ],
22 styles: C.Options.styles.filter(s => s != "recycle")
23 };
24 }
25
26 constructor(o) {
27 o.options["recycle"] = true;
28 super(o);
29 }
30
31};