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
32 changes: 32 additions & 0 deletions locales/en/apgames.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
"lasca": "A Draughts variant where captured pieces remain on the board and can be freed later. Immobilize your opponent to win.",
"lielow": "A wartime tale of Machiavellian usurpership. You win if your piece lands on your opponent's king. You also win if your opponent chooses to move their king off the board.",
"lifeline": "Conquer territory and capture enemy groups by cutting them off from all their allies. A group is cut off when it has no free path (straight or otherwise) to other groups of its color. Win by leaving your opponent with no moves.",
"linage": "A territorial game played with just one color.",
"loa": "A classic game where you try to gather all your pieces into a single connected group. Pieces can only move the exact number of spaces as the number of pieces that lie along the line of movement. The \"Scrambled Eggs\" initial layout variant is supported.",
"logger": "A Looney pyramids game where the players vie to grow and harvest more trees than their opponents.",
"lox": "Hex connection game with captures inspired by Tumbleweed. A cell is controlled by a player if it has more lines of sight to the player's pieces than half of the number neighbours that it has. If an opponent's piece is on your controlled cell, you may capture it by replacing it with your own piece on your turn. The player with a solid connection between their two sides at the start of their turn wins.",
Expand Down Expand Up @@ -284,6 +285,7 @@
"jacynth": "More information on the Decktet system can be found on the [official Decktet website](https://www.decktet.com). Cards in players' hands are hidden from observers and opponents.",
"konane": "Several competing opening protocols exist, but the most common ruleset is the Naihe Ruleset, used by tournaments at the Bishop Museum in Hawaii and described in the BGG reference. This is what is implemented here.",
"lasca": "Maneuverability is a measure of how close your pieces are to promoting. Your maximum maneuverability is the board size times the number of stacks you control.\n\nMaterial is calculated by giving you a point for every friendly piece in a stack you control, plus an extra point if you have an officer on top of that stack.",
"linage" : "Linage is a 2016 game designed by Luis Bolaños Mures. The game is based on the following definitions: A **region** is a maximal set of orthogonally contiguous empty points. A **line** is a set of three orthogonally contiguous empty points on the same row or column; and a region is **owned** by Vertical if it contains no horizontal lines, and by Horizontal if it contains no vertical lines. A region is free if it is owned by neither player. Regions must always have at least one line.\n\nOn his turn, the player passes or places a stone in a free region. The game ends when both players pass in succession, and wins the one with highest score, i.e., the number of points in the regions the player owns, plus komi.",
"loa": "In the centre of the 9x9 board is a \"black hole.\". Landing on the black hole means the piece is removed from the game. Simultaneous connections are scored as a draw.",
"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.",
Expand Down Expand Up @@ -591,6 +593,9 @@
},
"size-17": {
"name": "17x17 board"
},
"size-19": {
"name": "19x19 board"
}
},
"bamboo": {
Expand Down Expand Up @@ -1686,6 +1691,23 @@
"name": "Size 12 board"
}
},
"linage": {
"size-11": {
"name": "11x11 board"
},
"size-13": {
"name": "13x13 board"
},
"#board": {
"name": "15x15 board"
},
"size-17": {
"name": "17x17 board"
},
"size-19": {
"name": "19x19 board"
}
},
"loa": {
"#board": {
"description": "9x9 \"black hole\" variant. Moving a piece onto the central hole removes the piece from the game.",
Expand Down Expand Up @@ -5249,6 +5271,16 @@
"TOO_MANY_PIECES": "Too many pieces.",
"INCURSION": "The cell at {{cell}} has no path to a friendly group."
},
"linage": {
"INITIAL_SETUP": "Choose a number of points to add to the second player's score, and the next player will choose sides. (0.5 will be added to Komi to prevent draws.)",
"INSTRUCTIONS": "Place a piece on a free region.",
"TABOO": "It is invalid to: (a) place on an owned region, (b) make a region without a horizontal or vertical line.",
"INVALID_KOMI": "You must choose an integer number of points to add to the second player's score.",
"INVALID_PASS": "You cannot pass currently.",
"OCCUPIED": "The placement must be on an empty cell.",
"INVALID_PLAYSECOND": "You cannot choose to play second from this board state.",
"KOMI_CHOICE": "You may either make the first move on the board and let your opponent keep the bonus points (an integer) or you may choose \"Play second\" and take the bonus points for yourself."
},
"loa": {
"BAD_PASS": "You may not pass if legal moves are available.",
"INITIAL_INSTRUCTIONS": "Select one of your pieces to move.",
Expand Down
1 change: 1 addition & 0 deletions src/games/ayu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export class AyuGame extends GameBase {
{ uid: "#board" },
{ uid: "size-15", group: "board" },
{ uid: "size-17", group: "board" },
{ uid: "size-19", group: "board" },
],
categories: ["goal>unify", "mechanic>move>group", "board>shape>rect", "board>connect>rect", "components>simple>1per"],
flags: ["pie"],
Expand Down
9 changes: 7 additions & 2 deletions src/games/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ import { SynapseGame, ISynapseState } from "./synapse";
import { AtariGoGame, IAtariGoState } from "./atarigo";
import { TanboGame, ITanboState } from "./tanbo";
import { UnaneGame, IUnaneState } from "./unane";
import { LinageGame, ILinageState } from "./linage";

export {
APGamesInformation, GameBase, GameBaseSimultaneous, IAPGameState,
Expand Down Expand Up @@ -509,6 +510,7 @@ export {
AtariGoGame, IAtariGoState,
TanboGame, ITanboState,
UnaneGame, IUnaneState,
LinageGame, ILinageState,
};

const games = new Map<string, typeof AmazonsGame | typeof BlamGame | typeof CannonGame |
Expand Down Expand Up @@ -596,7 +598,8 @@ const games = new Map<string, typeof AmazonsGame | typeof BlamGame | typeof Cann
typeof ShapeChessGame | typeof SlimetrailGame | typeof CatsDogsGame |
typeof SoccolotGame | typeof CourtGame | typeof HalmaGame |
typeof MinimizeGame | typeof HalmaClimbersGame | typeof SynapseGame |
typeof AtariGoGame | typeof TanboGame | typeof UnaneGame
typeof AtariGoGame | typeof TanboGame | typeof UnaneGame |
typeof LinageGame
>();
// Manually add each game to the following array
[
Expand Down Expand Up @@ -635,7 +638,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
SynapseGame, AtariGoGame, TanboGame, UnaneGame, LinageGame
].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 @@ -1153,6 +1156,8 @@ export const GameFactory = (game: string, ...args: any[]): GameBase|GameBaseSimu
return new TanboGame(...args);
case "unane":
return new UnaneGame(...args);
case "linage":
return new LinageGame(...args);
}
return;
}
Loading
Loading