Commit | Line | Data |
---|---|---|
a7d09201 BA |
1 | import ChessRules from "/base_rules.js"; |
2 | ||
3 | export 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 | }; |