X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FShatranj.js;h=0569f713e54bc0e0d9de6276bef7d80d97773946;hb=7e8a7ea1cb66adb4a987badfb0a3c2f99a21bd0a;hp=105331f930ac3e11e979556bfcc320cf1c89c249;hpb=0d5335de5c94d780e03ac0aa3279b731c69455cc;p=vchess.git diff --git a/client/src/variants/Shatranj.js b/client/src/variants/Shatranj.js index 105331f9..0569f713 100644 --- a/client/src/variants/Shatranj.js +++ b/client/src/variants/Shatranj.js @@ -1,6 +1,7 @@ import { ChessRules } from "@/base_rules"; export class ShatranjRules extends ChessRules { + static get HasFlags() { return false; } @@ -9,6 +10,14 @@ export class ShatranjRules extends ChessRules { return false; } + static get Monochrome() { + return true; + } + + static get Notoodark() { + return true; + } + static get PawnSpecs() { return Object.assign( {}, @@ -20,6 +29,11 @@ export class ShatranjRules extends ChessRules { ); } + getPpath(b) { + if (b[1] == 'b') return "Shatranj/" + b; + return b; + } + static get ElephantSteps() { return [ [-2, -2], @@ -138,4 +152,5 @@ export class ShatranjRules extends ChessRules { k: 1000 }; } + };