After base_rules refactoring. Still a few issues (Dark...)
[xogo.git] / variants / Atomic / class.js
index 7cac4e5..b0662d3 100644 (file)
@@ -24,23 +24,8 @@ export default class AtomicRules extends ChessRules {
   }
 
   constructor(o) {
+    o.options["atomic"] = true;
     super(o);
-    this.options.atomic = true;
-  }
-
-  genRandInitFen(seed) {
-    return super.genRandInitFen(seed).slice(0, -1) + ',"rempawn":' + (this.options.rempawn ? "1" : "0") + "}";
-  }
-
-  // TODO: capture king option doesn't make sense
-
-  setOtherVariables(fenParsed) {
-    super.setOtherVariables(fenParsed);
-    this.options["rempawn"] = (fenParsed.rempawn == 1);
-  }
-
-  getFen() {
-    return super.getFen().slice(0, -1) + ',"rempawn":' + (this.options["rempawn"] ? "1" : "0") + "}";
   }
 
   canIplay(x, y) {