Repository navigation
Arimaa: Basic and Advanced input modes - #532
Merged
Perlkonig merged 1 commit intoNov 25, 2026
Merged
Conversation
…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
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human Written Section {
These are the two areas I thought you might want to look at before accepting the PR
scripts/lib/apgames-extract-ts.mjsas well as some minor changes to the gameslib playgroundscriptsfolder 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 PRexperimental=falseexperimental=false? As far as I'm concerned Dicey Moves is ready, but it's easy enough to mark it asexperimental=trueif there's a problem with releasing it in this PR}
Click entry now has two modes, picked in the input-mode picker.
Also:
scripts/lib/apgames-extract-ts.mjsdiff).