X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FSittuyin.js;h=5efd8cda5cce036a64b555f4a16de6c7332fa916;hb=7e8a7ea1cb66adb4a987badfb0a3c2f99a21bd0a;hp=c93c3f07d30f6e42f4d41554e0a54dad07422168;hpb=1c15969ecec2a86ee7dffe570e53dfd61fd06b22;p=vchess.git diff --git a/client/src/variants/Sittuyin.js b/client/src/variants/Sittuyin.js index c93c3f07..5efd8cda 100644 --- a/client/src/variants/Sittuyin.js +++ b/client/src/variants/Sittuyin.js @@ -2,6 +2,7 @@ import { ChessRules, Move, PiPo } from "@/base_rules"; import { randInt } from "@/utils/alea"; export class SittuyinRules extends ChessRules { + static get HasFlags() { return false; } @@ -10,6 +11,21 @@ export class SittuyinRules extends ChessRules { return false; } + static get Monochrome() { + return true; + } + + static get Notoodark() { + return true; + } + + static get Lines() { + return ChessRules.Lines.concat([ + [[0, 0], [8, 8]], + [[0, 8], [8, 0]] + ]); + } + static get PawnSpecs() { return Object.assign( {}, @@ -387,4 +403,5 @@ export class SittuyinRules extends ChessRules { } return super.getNotation(move); } + };