From: Benjamin Auder Date: Sat, 2 May 2020 23:39:26 +0000 (+0200) Subject: Fix typo in Chakart getComputerMove() X-Git-Url: https://git.auder.net/variants/Chakart/doc/scripts/common.css?a=commitdiff_plain;h=032ecd58543d1182b41da0c45b272e99a3014ad8;p=vchess.git Fix typo in Chakart getComputerMove() --- diff --git a/client/src/variants/Chakart.js b/client/src/variants/Chakart.js index 8f84b373..bfbca52e 100644 --- a/client/src/variants/Chakart.js +++ b/client/src/variants/Chakart.js @@ -1358,7 +1358,7 @@ export class ChakartRules extends ChessRules { // Play a deterministic one: capture king or material if possible return super.getComputerMove(deterministicMoves); // Play a random effect move, at random: - let move1 = randomMoves[randInt(moves.length)]; + let move1 = randomMoves[randInt(randomMoves.length)]; this.play(move1); let move2 = undefined; if (this.subTurn == 2) {