Skip to content

Commit

Permalink
Merge pull request #224 from AbstractPlay/develop
Browse files Browse the repository at this point in the history
Deploy Pods fix
  • Loading branch information
humanat authored Oct 23, 2024
2 parents 34b5c57 + 6fc89dc commit 7542119
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/games/pods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export class PodsGame extends GameBase {
result.message = i18next.t("apgames:validation._general.VALID_MOVE");
} else if (cells.length === 2) {
result.message = i18next.t("apgames:validation.pods.INVALID_MOVEMENT");
} else if (moves.filter(move => move.startsWith(m)).length > 0) {
} else if (moves.filter(move => move.startsWith(`${m}-`)).length > 0) {
result.valid = true;
result.canrender = true;
result.message = i18next.t("apgames:validation.pods.INITIAL_INSTRUCTIONS");
Expand Down Expand Up @@ -411,7 +411,7 @@ export class PodsGame extends GameBase {

private findPoints(cell: string): [number, number][] {
const points: [number, number][] = [];
const moves = this.moves().filter(m => m.startsWith(cell));
const moves = this.moves().filter(m => m.startsWith(`${cell}-`));
for (const move of moves) {
const cells = move.split("-");
points.push(this.getGraph().algebraic2coords(cells[1]));
Expand Down
3 changes: 2 additions & 1 deletion src/games/tritium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ export class TritiumGame extends GameBase {
playercounts: [2],
version: "1.0",
description: "apgames:descriptions.tritium",
urls: ["https://docs.google.com/document/d/1k0-pHtMFXYcWwuAhARt7b7jHLgfsAOCjoqlRMyvlBH0/edit?usp=sharing"],
urls: ["https://boardgamegeek.com/boardgame/430859/tritium"],
people: [
{
type: "designer",
name: "Noé Falzon",
urls: ["https://boardgamegeek.com/boardgamedesigner/164706/noe-falzon"]
},
],
flags: ["automove", "scores"],
Expand Down

0 comments on commit 7542119

Please sign in to comment.