From: Benjamin Auder Date: Fri, 3 Jun 2022 08:11:49 +0000 (+0200) Subject: Start thinking about Chakart X-Git-Url: https://git.auder.net/variants/current/doc/css/pieces/img/%24%7BgetWhatsApp%28link%29%7D?a=commitdiff_plain;h=2b9b90da84838a759b0ca382929bc70b1c83a296;p=xogo.git Start thinking about Chakart --- diff --git a/variants/Chakart/class.js b/variants/Chakart/class.js index 9659ef3..ef2ef21 100644 --- a/variants/Chakart/class.js +++ b/variants/Chakart/class.js @@ -1,7 +1,14 @@ -import { ChessRules, Move, PiPo } from "@/base_rules"; -import { SuicideRules } from "@/variants/Suicide"; -import { ArrayFun } from "@/utils/array"; -import { randInt } from "@/utils/alea"; +import ChessRules from "/base_rules"; +import { SuicideRules } from "/variants/Suicide"; ////////:TODO generalize genRandInitFen ?! +// constraints satisfaction ? + Chakart display bonus messages +// + animation + multi-moves for bananas/bombs/mushrooms + + + +import { ArrayFun } from "/utils/array"; +import { randInt } from "/utils/alea"; +import PiPo from "/utils/PiPo.js"; +import Move from "/utils/Move.js"; export class ChakartRules extends ChessRules { @@ -25,28 +32,13 @@ export class ChakartRules extends ChessRules { static get PawnSpecs() { return SuicideRules.PawnSpecs; } - - static get HasCastle() { - return false; - } - - static get HasEnpassant() { - return false; - } - - static get CorrConfirm() { - // Because of bonus effects + get hasCastle() { return false; } - - static get CanAnalyze() { + get hasEnpassant() { return false; } - static get SomeHiddenMoves() { - return true; - } - static get IMMOBILIZE_CODE() { return { 'p': 's',