X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FChess960.js;h=8d5cbafc44b1085a70c2c53229802c5114450f6c;hb=4313762da3237b04f204e121a20cab3ba7bb5dd2;hp=36397f695dd93dc740d6e027e0016c68353528ed;hpb=e27329232b83700d63c8fb52af6f4c2eec9a569c;p=vchess.git diff --git a/client/src/variants/Chess960.js b/client/src/variants/Chess960.js index 36397f69..8d5cbafc 100644 --- a/client/src/variants/Chess960.js +++ b/client/src/variants/Chess960.js @@ -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 } + ] + } + ] + }; + } + +};