From 2b9b90da84838a759b0ca382929bc70b1c83a296 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Fri, 3 Jun 2022 10:11:49 +0200
Subject: [PATCH] Start thinking about Chakart

---
 variants/Chakart/class.js | 34 +++++++++++++---------------------
 1 file changed, 13 insertions(+), 21 deletions(-)

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',
-- 
2.44.0