Skip to content

Commit b1d969e

Browse files
committed
Krypte: Going live
1 parent 3b2ed3c commit b1d969e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

locales/en/apgames.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4417,7 +4417,7 @@
44174417
},
44184418
"krypte": {
44194419
"INITIAL_INSTRUCTIONS": "Enter a piece on the active side of the board",
4420-
"AMBIGUOUS": "Ambiguous moves, i.e. moves that could be entered from both active sides simultaneously, are forbidden.",
4420+
"AMBIGUOUS": "Ambiguous moves (moves that could be entered from both active sides simultaneously) are forbidden.",
44214421
"SIMULTANEOUS": "Moves that would create winning lines for both players simultaneously are not allowed.",
44224422
"ACTIVE": "Pieces must be entered from one of the active sides of the board, sliding over existing pieces to the first empty square."
44234423
},

src/games/krypte.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class KrypteGame extends InARowBase {
3030
uid: "krypte",
3131
playercounts: [2],
3232
version: "20260108",
33-
dateAdded: "2026-01-08",
33+
dateAdded: "2026-01-10",
3434
// i18next.t("apgames:descriptions.krypte")
3535
description: "apgames:descriptions.krypte",
3636
urls: ["https://boardgamegeek.com/boardgame/209858/krypte"],
@@ -54,7 +54,7 @@ export class KrypteGame extends InARowBase {
5454
{uid: "moves_yes_sides_no"},
5555
{uid: "moves_no_sides_no"},
5656
],
57-
flags: ["experimental"]
57+
flags: []
5858
};
5959

6060
public coords2algebraic(x: number, y: number): string {
@@ -115,15 +115,15 @@ export class KrypteGame extends InARowBase {
115115
}
116116
this.load();
117117
}
118-
118+
119119
public load(idx = -1): KrypteGame {
120120
if (idx < 0) {
121121
idx += this.stack.length;
122122
}
123123
if (idx < 0 || idx >= this.stack.length) {
124124
throw new Error("Could not load the requested state from the stack.");
125125
}
126-
126+
127127
const state = this.stack[idx];
128128
if (state === undefined) {
129129
throw new Error(`Could not load state index ${idx}`);
@@ -262,16 +262,16 @@ export class KrypteGame extends InARowBase {
262262
is updated) */
263263
const [side1, side2] = this.activeSides();
264264
const moveSide = this.isMoveFromSide(m, side1) ? side1 : side2;
265-
265+
266266
this.results = [];
267-
267+
268268
this.board = this.boardAfterMove(m);
269269
this.results.push({ type: "place", where: m });
270-
270+
271271
if (partial) { return this; }
272-
272+
273273
this.lastmoveSide = moveSide;
274-
274+
275275
this.lastmove = m;
276276
this.currplayer = this.currplayer % 2 + 1 as playerid;
277277

0 commit comments

Comments
 (0)