Add some more variants; TODO: Doublemove options
[xogo.git] / variants / Crazyhouse / class.js
... / ...
CommitLineData
1import ChessRules from "/base_rules.js";
2
3export default class CrazyhouseRules extends ChessRules {
4
5 static get Options() {
6 return {
7 select: C.Options.select,
8 check: C.Options.check,
9 styles: C.Options.styles.filter(s => s != "crazyhouse")
10 };
11 }
12
13 constructor(o) {
14 super(o);
15 this.options.crazyhouse = true;
16 }
17
18};