Almost added TitanChess + EvolutionChess
[vchess.git] / client / src / variants / Tencubed.js
index 99bff13..af48977 100644 (file)
@@ -3,6 +3,7 @@ import { ArrayFun } from "@/utils/array";
 import { shuffle } from "@/utils/alea";
 
 export class TencubedRules extends ChessRules {
+
   static get PawnSpecs() {
     return Object.assign(
       {},
@@ -206,11 +207,11 @@ export class TencubedRules extends ChessRules {
 
   isAttackedByArchbishop(sq, color) {
     return (
-      this.isAttackedBySlideNJump(sq, color, V.CARDINAL, V.steps[V.BISHOP]) ||
+      this.isAttackedBySlideNJump(sq, color, V.ARCHBISHOP, V.steps[V.BISHOP]) ||
       this.isAttackedBySlideNJump(
         sq,
         color,
-        V.CARDINAL,
+        V.ARCHBISHOP,
         V.steps[V.KNIGHT],
         "oneStep"
       )
@@ -242,4 +243,5 @@ export class TencubedRules extends ChessRules {
       { c: 4, w: 3, a: 6, m: 8 }
     );
   }
+
 };