X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=variants%2FAtomic%2Fclass.js;h=4bd27122749cad4dec8ee903188ab14aa18b5f2e;hb=55d3b31f34f6b29f089db5723caf552ebf091905;hp=924d2226e640224a60fa1b848227cea851c3e234;hpb=639afc982f9c3be3b4748ef10e8ef771a295712f;p=xogo.git diff --git a/variants/Atomic/class.js b/variants/Atomic/class.js index 924d222..4bd2712 100644 --- a/variants/Atomic/class.js +++ b/variants/Atomic/class.js @@ -7,18 +7,14 @@ export default class AtomicRules extends ChessRules { static get Options() { return { select: C.Options.select, - check: [ + input: [ { label: "Balanced", - defaut: false, - variable: "rempawn" - }, - { - label: "Falling pawn", - defaut: false, - variable: "pawnfall" + variable: "rempawn", + type: "checkbox", + defaut: false } - ], + ].concat(C.Options.input.filter(i => i.variable == "pawnfall")), styles: C.Options.styles.filter(s => s != "atomic") }; } @@ -49,8 +45,8 @@ export default class AtomicRules extends ChessRules { c: c }) ], - start: { x: x, y: y }, - end: { x: x, y: y } + start: {x: x, y: y}, + end: {x: x, y: y} }) ]; }