From b5e828ac3070a9da914337e77891c7aaa582fea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Neto?= Date: Sat, 16 May 2026 17:06:12 +0100 Subject: [PATCH] Update shapechess.ts --- src/games/shapechess.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/games/shapechess.ts b/src/games/shapechess.ts index d20ae1f7..16747fc9 100644 --- a/src/games/shapechess.ts +++ b/src/games/shapechess.ts @@ -291,8 +291,6 @@ export class ShapeChessGame extends GameBase { const moves = actions.at(-1)!.split("-"); // let's validate the last action if ( moves.length === 1 ) { - result.valid = true; - result.canrender = true; result.complete = -1; if (! cloned.board.has(moves[0]) ) { // if placed on an empty cell, this might be a complete move @@ -310,6 +308,8 @@ export class ShapeChessGame extends GameBase { } result.message = i18next.t("apgames:validation.shapechess.PUSH_INSTRUCTIONS"); } + result.valid = true; + result.canrender = true; return result; }