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
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Since the `1.0.0-beta` release, the version in `package.json` has stayed at `1.0
- **New games:** Clear Path, Kill-All Go, Selfo, Thue-Morse Go, Yodd, Yonkoma (Kill-All Go handicap opening variant remains unrated).
- **Quax:** optional **Diamond board** display (`squares-diamonds` with connection flood fill; vertex board remains default).
- **Locale tooling:** `npm run audit-locale` (dev-only catalog/shape/stale-MT audit with `locale-src/en/_locale-audit-allowlist.json`); `npm test` includes full-registry **missing catalog key** checks for runtime i18n.
- **Arimaa: Dicey Moves**
- Roll a weighted d4 (weights {1, 1, 1, 3}) and take up to that number of steps each turn (see wiki for details)

### Fixed

Expand Down Expand Up @@ -53,6 +55,21 @@ Since the `1.0.0-beta` release, the version in `package.json` has stayed at `1.0
- **`handleClick` API:** optional fifth argument **`IHandleClickUi`** (`panelId`, `board` as **`IClickBoardContext`**) for composite panels and draw-grid-aware board clicks; clients pass `ui.board` from the visible `APRenderRep.board` (Abstract Play front and playground ship this for Quax diamond-board).
- **Render annotations:** connection paths, win lines, and other undirected polylines use `type: "line"` instead of `type: "move"` with `arrow: false` (dozens of games; piece-slide highlights unchanged in Tintas, Chase, and Swarm; Even at Odds unchanged; Fractured score-track shifts stay `move` with arrows; Sentinel lines-of-sight stay `move` without arrowheads).
- **Clear Path:** after a cut-off win the board no longer draws the winner's sealing chain (which steps diagonally and could pass a crosscut); it draws one of the winner's remaining possible connections instead, the one needing the fewest further stones, as a dashed line with the stones still to be placed shown faintly. A completed winning path is still drawn as a solid line. Game description states the cut-off ending, and the move-log line names the winner and the dashed line (`version` `20261117`).
- **Arimaa Input Update:**
- Control Inputs (lowest priority; actual input takes precedence)
- Click on an empty square to mark the move complete
- Click on an opposing piece to undo the last move token
- Basic Input Mode (default)
- Click on a piece and then its destination to move it (and never any other piece) there
- "Chains" work, except for the 2-piece loop chain, which was deemed too easy to accidentally input and get surprised by for Basic Mode (it works in Advanced Mode)
- Pushes and Pulls can be input in either order
- The order you move pieces in determines which pieces are captured and not captured in traps
- Advanced Input Mode
- Click on a piece and then its final destination to move it there
- "Chains" work
- Moves which are necessary to make your input legal are inferred
- When a triangle appears in the corner of a trap square, click it when it's hollow to try to not capture the piece you're moving there, click it when it's filled to try to capture the piece you're moving there
- Clicking on an empty square you can move a piece to without selecting a piece first (called a "target" click/move internally) moves a piece there if it can narrow your intention down to one possibility (see wiki for exact hierarchy)

### Fixed

Expand Down
21 changes: 16 additions & 5 deletions locales/en/apgames.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,17 @@
},
"inputModes": {
"section": "Input mode",
"description": "How the board interprets your clicks for this game."
"description": "How the board interprets your clicks for this game.",
"arimaa": {
"basic": {
"name": "Basic",
"description": "Move only pieces you explicitly select, in the order you enter them. Every completed click sequence has an unambiguous result."
},
"advanced": {
"name": "Advanced",
"description": "Select by origin or target, and use inferred movements and trap-capture controls."
}
}
},
"status": {
"_player": "{{player}}",
Expand Down Expand Up @@ -1029,7 +1039,7 @@
"FROZEN": "The piece at {{where}} is frozen. It cannot move on its own.",
"HOME_ROW": "You may only place pieces on the two ranks closest to you.",
"INITIAL_INSTRUCTIONS_place": "Select a piece from your hand to place on the board.",
"INITIAL_INSTRUCTIONS_play": "Click a piece, then the square it should end the turn on. You can point at enemy pieces too; pushes and pulls are worked out for you.",
"INITIAL_INSTRUCTIONS_play": "Select a piece, then its destination. Select additional pieces to move them as a chain. Advanced mode also supports target clicks and inferred moves.",
"INVALID_PUSH": "Pushes must be immediately completed by moving the pushing piece into the space vacated by the pushed enemy piece.",
"INVALID_PUSHPULL": "You may only move enemy pieces when completing a pull or starting a push. Neither seem to apply in this case.",
"LABEL_STASH": "{{player}}'s stash",
Expand Down Expand Up @@ -1058,9 +1068,10 @@
"NO_MOVE_FROZEN": "The piece on {{from}} is frozen, and nothing can free it in time.",
"NO_MOVE_REACH": "The piece on {{from}} cannot get to {{to}} within {{num}} steps.",
"NO_MOVE_TOGETHER": "Each of those works on its own, but not all of them within {{num}} steps.",
"AMBIGUOUS": "That fits {{count}} different moves. Say where another piece ends up to settle it.",
"AMBIGUOUS": "That fits {{count}} different moves, and the one shown is the one that will be played. Say where another piece ends up to choose another.",
"IDLE": "Nothing moves yet. Say where a piece ends up.",
"INFERRED": "Also moving: {{pieces}}.",
"INCOMPLETE": "A piece is selected. Click a square to send it there, or click it again to keep it where it is.",
"INCOMPLETE": "A piece is selected. Click a square to send it there.",
"TOO_LONG": "What you have drawn needs more than {{num}} steps.",
"DIE_one": "The die allows a single step this turn.",
"DIE_other": "The die allows up to {{count}} steps this turn."
Expand Down Expand Up @@ -4993,7 +5004,7 @@
"akimbo": "Akimbo, designed by Luis Bolaños Mures in 2026, is a drawless connection game for two players. A _naked diagonal_ is a pair of like-colored, diagonally adjacent pieces with no other like-colored piece adjacent to both. A _crosscut_ is a 2×2 area with two interlocking naked diagonals of opposite colors.\n\nOn their turn, the player places a friendly piece on an empty cell. If this completes a crosscut, the other piece in the crosscut is removed. There must never be more than one naked diagonal of each color on the board — not even momentarily before removing a piece. A player wins if, at the end of their turn, there is a chain of orthogonally connected pieces of their color touching the player's two opposite board edges.\n\nOkimba is a variant where only up to one naked diagonal can exist on the board (so while one player has the diagonal, the adversary cannot create another).",
"alta": "There are two ways to place switches on the graphical interface: (1) Select the switch’s orientation in the panel, then click on the desired space on the board to place it, or (2) click on two vertices. The vertices are notated with an asterisk, followed by the algebraic notation of the space where the vertex is at the bottom-left corner. To toggle a switch, simply click on the space.",
"anache": "This implementation follows David Ploog's rulesheet. Three notable changes are that (1) barriers are forbidden, (2) instead of a 16x16, we have a 15x15 variant, where pieces promote to knights on the centreline, and the dragon may not jump to the 7x7 space from the other corner, and (3) against the corners, pieces are captured via crushing capture instead of custodian capture, so there needs to be at least two opponent pieces in a line before a capture is made against the corners.\n\nNote: the stalemate check is expensive. If you cannot make a legal move, you should resign manually.",
"arimaa": "Made available under section 3 of the [Arimaa public license](https://arimaa.com/arimaa/license/).\n\nDuring standard setup, you only need to place your eight non-rabbits. Once they are down, Complete Move fills the rest of your setup area with rabbits. You can still place any or all of the rabbits yourself first if you want them somewhere in particular.\n\nTo enter a move, click a piece and then the square it should end your turn on. The engine finds the shortest legal way to get it there, pushes and pulls included, and draws one arrow per piece from where it started to where it ends up. You can point at enemy pieces too. Click an arrow's head to extend it, or its tail to remove it. Clicking a selected piece a second time keeps it where it stands, which is how you stop the engine moving it aside. A few rarer turns need one more click; the wiki page for this game lists them all.\n\nMoves are recorded in Lightvector notation, which names each piece and where it ends up rather than listing every step. You can type it into the move box, and the older step-by-step notation is still accepted. The wiki page explains the notation in full.\n\nHarlog is an accepted method for determining material advantage. Positive scores favour Gold, negative Silver. The hard range is ±112, but in practice ±20 is a very strong advantage.\n\nIn Dicey Moves, a player whose die allows a single step has no move, and loses, when only pushes and pulls remain.\n\nBecause we can't generate comprehensive lists of moves, the system cannot detect the rare cases where your only available moves are illegal due to position repetition. The system won't let you make those illegal repetitions, and you'll have to resign manually.",
"arimaa": "Made available under section 3 of the [Arimaa public license](https://arimaa.com/arimaa/license/).\n\nControl Inputs: Click on an empty square to mark the move complete. Click on an opposing piece to undo the last move token.\n\nBasic Input Mode (default): Click on pieces and where you want to move them in the order they must move as per the rules. This mode is intended to be in line with other AP games in terms of intuitiveness and ease of use. See the AP Wiki for more details.\n\nAdvanced Input Mode: Click on pieces and where you want them to end up at the end of the turn. For sending a piece to a trap square, a filled triangle means to capture the piece if possible, an empty triangle means to avoid capturing the piece if possible, and clicking elsewhere on the trap square tries the other/default, which is almost always what you want. Click on certain empty squares to expedite certain sets of steps (cf, AP Wiki: Target Clicks). The system heavily infers steps necessary to make your input legal. This mode is intended to strive for click-efficiency without being too unintuitive once you're used to it. See the AP Wiki for more details (highly recommended).\n\nMoves are recorded in Lightvector notation, which is modeled after algebraic chess notation, albeit more flexible (and using lowercase letters to denote silver pieces). It's backwards-compatible with the Arimaa Gameroom Notation, and the legacy AP notation is still accepted. See the AP Wiki for more details.\n\nHarlog is a method for estimating material advantage. The color of the icon indicates who it favors. The hard range for standard setup is ±112, but in practice ±20 is a very strong advantage.\n\nIn Dicey Moves, a player whose die allows a single step has no move (and loses), if only pushes and pulls remain.\n\nBecause we can't generate comprehensive lists of moves, the system cannot detect the rare cases where your only available moves are illegal due to position repetition. The system won't let you make those illegal repetitions, and you'll have to resign manually.",
"armadas": "There are known issues with this game on iOS devices.\n\nThis game offers two scenarios:\n\n* The default is each player having two trios of pieces. In the placement phase, each player must place 1 to 3 ships until all ships are placed.\n* The \"Freeform\" variant allows you to place whatever ships you want (maximum of three at a time) until both players \"pass.\" This lets you create unbalanced or otherwise asymmetrical fleets.\n\nGames default to having one island in the centre of the field. Both a \"no islands\" and a \"two islands\" variant are available. You cannot move or fire through islands. To successfully hit a ship, at least one corner of your ship's triangle must have a clear view of at least one corner of the target ship.\n\nRemember that it is possible to get your ship in a position against an island or the edge of the board such that you can no longer move that ship! Be careful!",
"ataxx": "On three-fold repetition, the game ends and the scores are calculated.",
"bao": "Moves in Bao can be very complex, involving multiple laps around the board and changing directions. The annotations are, therefore, sparse. The initial cell and direction are highlighted, and captured cells are also marked. But detailed annotation of movement is not possible. If you believe you have encountered a bug, please let us know in Discord.",
Expand Down
3 changes: 2 additions & 1 deletion playground/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@ function applyPlaygroundClickResult(game, gamename, result) {
movebox.classList.add("move-ready");
}
if ( ( (result.hasOwnProperty("canrender")) && (result.canrender === true) ) || (result.complete >= 0) ) {
let renderOpts = playgroundRenderOpts(game, gamename);
// a click result's opts are meant for render(), as on the live site
let renderOpts = playgroundRenderOpts(game, gamename, result.opts);
applyPlaygroundDisplayRenderOpts(renderOpts);
const dotClearPartial =
result.valid &&
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/apgames-extract-ts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export function discoverGameApgamesEnOverlay() {
if (!plain) {
continue;
}
for (const section of ["validation", "variants", "displays", "buttons", "status"]) {
for (const section of ["validation", "variants", "displays", "buttons", "status", "inputModes"]) {
if (plain[section] !== undefined) {
if (!overlay[section]) {
overlay[section] = {};
Expand Down
Loading
Loading