X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=variants%2FTeleport%2Fclass.js;fp=variants%2FTeleport%2Fclass.js;h=5e52252f57c7ee934302197d1f3f031317409301;hb=a7d092011535bc7da231c2c254ec5c936b62cd71;hp=0000000000000000000000000000000000000000;hpb=57b8015b5c22ccfd419df11b9d0174484397c417;p=xogo.git diff --git a/variants/Teleport/class.js b/variants/Teleport/class.js new file mode 100644 index 0000000..5e52252 --- /dev/null +++ b/variants/Teleport/class.js @@ -0,0 +1,19 @@ +import ChessRules from "/base_rules.js"; + +export default class TeleportRules extends ChessRules { + + static get Options() { + return { + select: C.Options.select, + // TODO? option "teleport king"? + check: C.Options.check, + styles: C.Options.styles.filter(s => s != "teleport") + }; + } + + constructor(o) { + o.options["teleport"] = true; + super(o); + } + +};