Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion locales/en/apgames.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
"moonsquad": "Your mining company has found rich ore on this small moon, but you need buyers. Connect your mine to all 3 surface settlements, and hire squads to defend your mine and attack your rival.",
"mvolcano": "An Icehouse puzzle game for 2 players. Stacks of pyramids are volcanos, some of which are capped. As you move caps around, you cause eruptions that may lead to you capturing pieces. This is an older version of the game. It is played on a 6x6 board, and the game ends as soon as someone captures at least one piece of each colour or all three white pieces. Scores are then calculated. Highest score wins.",
"nakatta": "A square connection game where two specific piece configurations are forbidden.",
"narrows": "Link all your pieces by empty regions.",
"necklace": "An orthogonal-only square connection game where you try to connect your sides of the board. Crosscut formations are illegal, and every free space must always have a path to an edge.",
"nex": "Nex (or Neutral Hex) is a variant of the Hex connection game where there are neutral pieces. On your turn, you may either (1) place a piece of your colour and a neutral colour on an empty space, or (2) swap two neutral pieces to your colour and one of your piece to the neutral colour.",
"omny": "Generalized connection game where players try to split star cells into different regions so that no single region contains a majority of star cells.",
Expand Down Expand Up @@ -292,6 +293,7 @@
"magnate": "The terminology of some Magnate actions has been altered for clarity and brevity. Completely developing a new property is called the \"Buy\" action; purchasing a deed for a new property is called \"Deed\", developing deeds (that is, adding tokens to a deeded property, whether it results in the deed becoming fully developed or not) is called \"Add\". (Selling a card and trading suit tokens 3 for 1 are unchanged.)\n\nIn order to speed up the process of rolling for resources, there are two additional actions:\n* \"Prefer\" is for setting your preference of which suit token to take when a deed pays out on your opponent's roll. If you do not set an explicit preference, the code will choose the rarer token for you based on your non-crown suits and current supply of tokens. The currently preferred token is circled in the UI, but your personal preference is never visible to the other player.\n* \"Choose\" is a mandatory first action for collecting suit tokens when a deed pays out on your own roll. (In all cases where you need to choose a suit token that is not already among your tokens, you still click on the appropriate token pile.)\n\nBecause you can perform several actions during a ply in any order, there is also an \"Undo\" action to back out your most recent action, whether or not it was complete.\n\nNote that only the final resource die result is displayed, but the distribution of expected outcomes is still that of rolling 2d10 and taking the higher value. Taxation happens when the lower of 2d10 comes up 1; a suit die is rolled (or two, in the double taxation variant), and the suits will be displayed underneath the resource result. The roll is logged at the end of a player's turn, and is attributed to the next player (who would have rolled in the physical game). Except for a \"Choose\", no user action is required; resources are added or removed automatically by the server in between turns.\n\nWhen a player is ahead in a district, the Pawn or Excuse for that district is outlined in that player's color. The first tiebreaker score (total property value) is displayed in parentheses after the district score. The second tiebreaker is total number of tokens remaining.",
"mchess": "If there have been seven consecutive turns without a capture, someone can \"call the clock\" by adding an asterisk (*) to the end of their move. This can only be done by selecting the move from the drop-down list. After another seven turns with no capture, the game will end and be scored.",
"murus": "The default ruleset is \"Advanced Murus Gallicus\" (with catapults). By default, your first move is to redistribute one of your starting towers as walls on your second row. Additionally, the standard pie rule is also available. There are three variants you can mix and match:\n\n* \"Basic\" reverts the game to the \"no catapult\" state.\n* \"Static\" disables the initial tower redistribution.\n* \"Escape\" eliminates the breakthrough win condition.",
"narrows": "Narrows, designed by Mark Steere in 2026, is an unification game inspired by the ancient Hawiian game of Kōnane. True to the spirit of Kōnane, Ūnane begins with a checkerboard pattern of stones and is extremely simple. In this case, the unification goal includes the use of orthogonal paths of empty cells to connect different groups of friendly pieces.",
"oonpia": "Either use the legend to select a piece, or click the same location multiple times to cycle through all possible pieces. Blocked cells are highlighted: a translucent dot means only a dotted stone can be placed there (i.e. blocked for plain pieces), a translucent piece means only a plain piece can be placed there (i.e. blocked for dotted pieces). If both highlights are present, then the cell is blocked for all pieces.",
"oware": "This implementation follows the common tournament rule that grand slam moves are allowed, but no pieces are captured. Depicting state changes in sowing games is challenging. The initial chosen pit is marked, as is any capture. Small numbers appear to show the change in the number of stones in each pit. If you believe you have encountered a bug, please let us know in Discord.",
"pacru": "This implementation adheres to the 2011 rule change that requires at least one opponent to have at least nine tiles on the board before meetings will trigger.",
Expand Down Expand Up @@ -1968,6 +1970,26 @@
"name": "29x29 board"
}
},
"narrows": {
"size-6": {
"name": "5x6 board"
},
"#board": {
"name": "7x8 board"
},
"size-10": {
"name": "9x10 board"
},
"size-12": {
"name": "11x12 board"
},
"size-14": {
"name": "13x14 board"
},
"size-16": {
"name": "15x16 board"
}
},
"nex": {
"#board": {
"name": "11x11 board"
Expand Down Expand Up @@ -5565,6 +5587,13 @@
"BAD_PLACE": "You may not create hard corners or naked attachments (see the rules for details).",
"INITIAL_INSTRUCTIONS": "Select a point to place a piece."
},
"narrows": {
"INITIAL_INSTRUCTIONS": "Select a friendly piece.",
"INSTRUCTIONS": "Click on an orthogonally opposing piece to capture by replacement.",
"INVALID_SELECTION": "Click on a friendly piece.",
"CANNOT_MOVE": "This piece cannot move!",
"INVALID_MOVE": "Click on an opposing piece that is in the same row or column, adjacent or separated by a line of empty cells!"
},
"necklace": {
"BAD_PASS": "You may not pass if legal moves are available.",
"BLOCKS_PATH": "Placement at {{where}} blocks the only path of some free spaces to the edge.",
Expand Down Expand Up @@ -5759,7 +5788,7 @@
"INITIAL_INSTRUCTIONS_ORIGINAL": "Place a stone on an empty cell. If a pinch capture is made, the captured stone flips color. This flip might cause subsequent flips, starting a chain-reaction until the board stabilizes."
},
"pippinzip": {
"INITIAL_INSTRUCTIONS": "This is the auction phase. Either place one to three pieces on empty cells to improve 'Zip' position, or press 'pass' to finish the auction and be 'Zip'. 'Zip' then places one piece per turn and tries to connect all four board edges. Pip then places two non-adjacent pieces per turn and must orthogonally connect two opposite edges.",
"INITIAL_INSTRUCTIONS": "This is the auction phase. Either place one to three pieces on empty cells to improve 'Zip' position, or press 'pass' to finish the auction and be 'Zip'. 'Pip' then places two non-adjacent pieces per turn and must orthogonally connect two opposite edges. 'Zip' then places one piece per turn and tries to connect all four board edges.",
"INSTRUCTIONS_PIP": "Place two friendly pieces not orthogonally adjacent to each other.",
"INSTRUCTIONS_PIP_2": "Place the second friendly piece not orthogonally adjacent to the previous one.",
"INSTRUCTIONS_ZIP": "Place one friendly piece.",
Expand Down
9 changes: 7 additions & 2 deletions src/games/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ import { UnaneGame, IUnaneState } from "./unane";
import { LinageGame, ILinageState } from "./linage";
import { PolluxGame, IPolluxState } from "./pollux";
import { PippinzipGame, IPippinzipState } from "./pippinzip";
import { NarrowsGame, INarrowsState } from "./narrows";

export {
APGamesInformation, GameBase, GameBaseSimultaneous, IAPGameState,
Expand Down Expand Up @@ -515,6 +516,7 @@ export {
LinageGame, ILinageState,
PolluxGame, IPolluxState,
PippinzipGame, IPippinzipState,
NarrowsGame, INarrowsState,
};

const games = new Map<string, typeof AmazonsGame | typeof BlamGame | typeof CannonGame |
Expand Down Expand Up @@ -603,7 +605,8 @@ const games = new Map<string, typeof AmazonsGame | typeof BlamGame | typeof Cann
typeof SoccolotGame | typeof CourtGame | typeof HalmaGame |
typeof MinimizeGame | typeof HalmaClimbersGame | typeof SynapseGame |
typeof AtariGoGame | typeof TanboGame | typeof UnaneGame |
typeof LinageGame | typeof PolluxGame | typeof PippinzipGame
typeof LinageGame | typeof PolluxGame | typeof PippinzipGame |
typeof NarrowsGame
>();
// Manually add each game to the following array
[
Expand Down Expand Up @@ -642,7 +645,7 @@ const games = new Map<string, typeof AmazonsGame | typeof BlamGame | typeof Cann
ProductGame, OonpiaGame, GoGame, StilettoGame, BTTGame, MinefieldGame, SentinelGame,
XanaGame, SporaGame, SquirmGame, PinchGame, DomineeringGame, TwinFlamesGame, YGame, ShapeChessGame,
SlimetrailGame, CatsDogsGame, SoccolotGame, CourtGame, HalmaGame, MinimizeGame, HalmaClimbersGame,
SynapseGame, AtariGoGame, TanboGame, UnaneGame, LinageGame, PolluxGame, PippinzipGame
SynapseGame, AtariGoGame, TanboGame, UnaneGame, LinageGame, PolluxGame, PippinzipGame, NarrowsGame
].forEach((g) => {
if (games.has(g.gameinfo.uid)) {
throw new Error("Another game with the UID '" + g.gameinfo.uid + "' has already been used. Duplicates are not allowed.");
Expand Down Expand Up @@ -1166,6 +1169,8 @@ export const GameFactory = (game: string, ...args: any[]): GameBase|GameBaseSimu
return new PolluxGame(...args);
case "pippinzip":
return new PippinzipGame(...args);
case "narrows":
return new NarrowsGame(...args);
}
return;
}
Loading
Loading