Add Cleopatra option to Benedict chess
[xogo.git] / variants / Teleport / class.js
CommitLineData
a7d09201
BA
1import ChessRules from "/base_rules.js";
2
3export default class TeleportRules extends ChessRules {
4
5 static get Options() {
6 return {
7 select: C.Options.select,
8 // TODO? option "teleport king"?
535c464b 9 input: C.Options.input,
a7d09201
BA
10 styles: C.Options.styles.filter(s => s != "teleport")
11 };
12 }
13
14 constructor(o) {
15 o.options["teleport"] = true;
16 super(o);
17 }
18
19};