From: Benjamin Auder Date: Tue, 7 Jun 2022 14:43:32 +0000 (+0200) Subject: update X-Git-Url: https://git.auder.net/doc/html/pieces/img/css/DESCRIPTION?a=commitdiff_plain;h=c7c2f41c6f3e1aaf02a8539afd85336c9d923213;p=xogo.git update --- diff --git a/variants/Chakart/class.js b/variants/Chakart/class.js index a9f11fb..0403624 100644 --- a/variants/Chakart/class.js +++ b/variants/Chakart/class.js @@ -144,8 +144,10 @@ export class ChakartRules extends ChessRules { this.effect = ""; } + // For Toadette bonus getDropMovesFrom([c, p]) { - if (this.reserve[c][p] == 0) return []; + if (this.reserve[c][p] == 0) + return []; let moves = []; const start = (c == 'w' && p == 'p' ? 1 : 0); const end = (color == 'b' && p == 'p' ? 7 : 8);