Skip to content

Commit

Permalink
Marking Konane experimental until I get it fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Field committed Oct 31, 2024
1 parent c9db606 commit 50224f6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/games/konane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 50224f6

Please sign in to comment.