From: Benjamin Auder Date: Thu, 23 Apr 2020 18:45:27 +0000 (+0200) Subject: Fix computer play for Absorption variant X-Git-Url: https://git.auder.net/doc/current/%7B%7B%20asset%28%27mixstore/images/favicon.png%27%29%20%7D%7D?a=commitdiff_plain;h=8948a2876de183467f610a703d8c7f6d7c2df570;p=vchess.git Fix computer play for Absorption variant --- 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)