Untested draft refactor both/moves/attack for pieces specs
[xogo.git] / variants / _Berolina / class.js
diff --git a/variants/_Berolina/class.js b/variants/_Berolina/class.js
deleted file mode 100644 (file)
index 6066e51..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-import ChessRules from "/base_rules.js";
-
-export default class BerolinaRules extends ChessRules {
-
-  pieces(color, x, y) {
-    const pawnShift = (color == "w" ? -1 : 1);
-    let res = super.pieces(color, x, y);
-    res['p'].moves = [
-      {
-        steps: [[pawnShift, 1], [pawnShift, -1]],
-        range: 1
-      }
-    ];
-    res['p'].attack = [
-      {
-        steps: [[pawnShift, 0]],
-        range: 1
-      }
-    ];
-    return res;
-  }
-
-};