Skip to content

Arimaa: Basic and Advanced input modes - #532

Merged
Perlkonig merged 1 commit into
AbstractPlay:developfrom
samtcifihi:arimaa-input-update-2026-11-25
Nov 25, 2026
Merged

Perlkonig merged 1 commit into
AbstractPlay:developfrom
samtcifihi:arimaa-input-update-2026-11-25

Conversation

@samtcifihi

Copy link
Copy Markdown
Contributor

Human Written Section {

These are the two areas I thought you might want to look at before accepting the PR

  • There's a 1-line change in scripts/lib/apgames-extract-ts.mjs as well as some minor changes to the gameslib playground
    • I'm not sure if I'm supposed to be changing these files, hence flagging it
    • There are a few other files in the scripts folder which Claude and Chappy suggested could benefit from updates to account for the new Input Mode feature; this is the one file that Claude and Chappy agreed was necessary for the Arimaa Input Changes as currently written to work, so it's the only one I left in the PR
  • I marked Dicey Moves as experimental=false
    • Is there any process for releasing a variant of a game besides just marking it as experimental=false? As far as I'm concerned Dicey Moves is ready, but it's easy enough to mark it as experimental=true if there's a problem with releasing it in this PR

}

Click entry now has two modes, picked in the input-mode picker.

  • Basic (the default) moves only the pieces you select, step by step in the order you enter them, so the order decides what traps capture. Pushes and pulls can be entered either way round, and chains work, except the two-piece loop.
  • Advanced takes a piece and where it should end the turn, and infers whatever else has to move, disturbing as few pieces as it can. Chains work, a triangle on a trap chooses whether the piece sent there is captured, and a click on an empty square with nothing selected moves a piece there when that narrows to one move.
  • In both, a click that means nothing is a control: an empty square completes the move, and an opposing piece takes back the last token. The same controls work during setup.

Also:

  • Dicey Moves is no longer experimental.
  • The check for activating the warning against setting up pieces behind stronger pieces didn't match its text (the user-facing text described the intended behavior), so we fixed the check.
  • Cleaned up the Implementation Notes and updated them to reflect the new input behavior.
  • The English locale merge reads inputModes from gameApgamesEn (cf, the scripts/lib/apgames-extract-ts.mjs diff).
  • The playground passes a click result's render options to its preview, as the site does.

…mental

Click entry now has two modes, picked in the input-mode picker.

- Basic (the default) moves only the pieces you select, step by step in
  the order you enter them, so the order decides what traps capture.
  Pushes and pulls can be entered either way round, and chains work,
  except the two-piece loop.
- Advanced takes a piece and where it should end the turn, and infers
  whatever else has to move, disturbing as few pieces as it can. Chains
  work, a triangle on a trap chooses whether the piece sent there is
  captured, and a click on an empty square with nothing selected moves
  a piece there when that narrows to one move.
- In both, a click that means nothing is a control: an empty square
  completes the move, and an opposing piece takes back the last token.
  The same controls work during setup.

Moves are stored in canonical Lightvector notation however they were
entered, and compare by the position they reach, so premoves match. Old
recorded games, including the few with moves the rules no longer allow,
replay as before, and the saved-state version is unchanged.

Also:
- Dicey Moves is no longer experimental.
- Standard setup's advice against hiding stronger pieces behind weaker
  ones now applies behind rabbits too (any piece but a cat).
- New help notes; English strings for the input modes, and the changed
  move-box messages.
- arimaa/input.ts holds click entry; setup and the legacy step lists move
  out of arimaa.ts into arimaa/setup.ts and arimaa/legacy.ts.
- The English locale merge reads inputModes from gameApgamesEn.
- The playground passes a click result's render options to its preview,
  as the site does.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014dzXZzeKPEpGZo9QzCSJUN
@samtcifihi

samtcifihi commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

I updated the AP Wiki. Chappy didn't find any major problems with my description when comparing it with the implementation, so the current state of the Wiki should be good enough, and I'll improve it based on Chappy's comments (and any feedback I get on confusing points) over the next few days

I'll wait until after it's live to clean up the "soon to be legacy" section, since it's currently the relevant description of how to input moves

@Perlkonig
Perlkonig merged commit f508135 into AbstractPlay:develop Nov 25, 2026
1 check passed
@samtcifihi
samtcifihi deleted the arimaa-input-update-2026-11-25 branch November 25, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants