From 50224f6aa6dcd78c817978bce1de6b1c0ea5ba97 Mon Sep 17 00:00:00 2001 From: Christopher Field Date: Thu, 31 Oct 2024 14:34:19 -0400 Subject: [PATCH] Marking Konane experimental until I get it fixed --- src/games/konane.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/games/konane.ts b/src/games/konane.ts index bbe8df4f..73be2ed3 100644 --- a/src/games/konane.ts +++ b/src/games/konane.ts @@ -40,7 +40,7 @@ export class KonaneGame extends GameBase { } ], categories: ["goal>immobilize", "mechanic>capture", "board>shape>rect"], - flags: ["automove"], + flags: ["experimental", "automove"], variants: [ { uid: "size-8", @@ -297,12 +297,7 @@ export class KonaneGame extends GameBase { let complete = false; if (!trusted) { const result = this.validateMove(m); - if (!result.valid) { - throw new UserFacingError("VALIDATION_GENERAL", result.message); - } - if (!partial && !moves.includes(m)) { - throw new UserFacingError("VALIDATION_FAILSAFE", i18next.t("apgames:validation._general.FAILSAFE", {move: m})); - } + if (!result.valid) throw new UserFacingError("VALIDATION_GENERAL", result.message); if (result.complete === 1) complete = true; }