From 8948a2876de183467f610a703d8c7f6d7c2df570 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Thu, 23 Apr 2020 20:45:27 +0200 Subject: [PATCH] Fix computer play for Absorption variant --- client/src/variants/Absorption.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/variants/Absorption.js b/client/src/variants/Absorption.js index efa01036..7a9ff3c5 100644 --- a/client/src/variants/Absorption.js +++ b/client/src/variants/Absorption.js @@ -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) -- 2.44.0