Fix computer play for Absorption variant
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 23 Apr 2020 18:45:27 +0000 (20:45 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 23 Apr 2020 18:45:27 +0000 (20:45 +0200)
client/src/variants/Absorption.js

index efa0103..7a9ff3c 100644 (file)
@@ -124,6 +124,13 @@ export class AbsorptionRules extends ChessRules {
     );
   }
 
+  static get VALUES() {
+    return Object.assign(
+      { a: 12, e: 7, s: 5 },
+      ChessRules.VALUES
+    );
+  }
+
   getNotation(move) {
     let notation = super.getNotation(move);
     if (move.vanish[0].p != V.PAWN && move.appear[0].p != move.vanish[0].p)