Add Giveaway. Preparing for Chakart a little more
[xogo.git] / variants / Atomic / class.js
index 924d222..5c73de2 100644 (file)
@@ -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")
     };
   }