X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FChess960.js;h=8d5cbafc44b1085a70c2c53229802c5114450f6c;hb=HEAD;hp=74f4d1d5ccbedf756014455a9830f5515615ebc9;hpb=dac395887d96e2d642b209c6db6aaacc3ffacb34;p=vchess.git diff --git a/client/src/variants/Chess960.js b/client/src/variants/Chess960.js index 74f4d1d5..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 } + ] + } + ] + }; + } + +};