Several small improvements + integrate options + first working draft of Cwda
[vchess.git] / client / src / variants / Chess960.js
index 74f4d1d..8d5cbaf 100644 (file)
@@ -1,5 +1,22 @@
 import { ChessRules } from "@/base_rules";
-export const VariantRules = class Chess960Rules extends ChessRules
-{
-  // Standard 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 }
+          ]
+        }
+      ]
+    };
+  }
+
+};