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