Experimental change: options replacing randomness (more general)
[vchess.git] / client / src / variants / Chess960.js
diff --git a/client/src/variants/Chess960.js b/client/src/variants/Chess960.js
new file mode 100644 (file)
index 0000000..968ec1c
--- /dev/null
@@ -0,0 +1,23 @@
+import { ChessRules } from "@/base_rules";
+
+export class Chess960Rules extends ChessRules {
+
+  // Do not allow standard chess:
+  static get Options() {
+    return {
+      select: [
+        {
+          label: "Randomness",
+          variable: "randomness",
+          defaut: 2,
+          options: [
+            { label: "Symmetric random", value: 1 },
+            { label: "Asymmetric random", value: 2 }
+          ]
+        }
+      ],
+      check: []
+    };
+  }
+
+};