Repository navigation
More fixes - #2
Merged
Merged
Conversation
Member
|
I'm happy to have someone who actually has a clue about the notation to take a look! :D |
Member
|
AI review mentions the following. Something worth following up with? I'll tweak the tests and documentation when I merge it. |
Contributor
Author
|
Hm yeah, I should make it throw an error explicitly for O. And I'm not sure how those combine with the universal leaper U (it allows pieces to go anywhere except for the square that it is currently on, and it's used for the eternal emperor in Taikyoku Shogi). Maybe I'll make it throw too. |
Contributor
Author
|
Okay, I think this should work |
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.
I went back to the actual XBoard Betza spec, and it turns out I got something wrong last time, plus there were some older oddities I hadn't noticed.
The one from #1 is
a. I had it as the series rider prefix (so nightrider wasaN), butaactually means another move leg, i.e. a continuation. Unlimited riders areN0(NNis the old form, which we still accept).Other issues:
pwas "clear path" but it's the cannon modifier,jwas cannon but it's must-jump,hwas locust but it's a direction modifier (half-plane, with hr/hl for the chiral halves),owas must-capture-first but it's cylindrical, andtwas take-and-continue but it's tame (can't capture royalty).Gwas the giraffe but it's the tripper (3,3), andJwas a jumping general but it's the old spelling of the camel (same asC).E,S,M,Pand theu/x/ymodifiers were non-standard.New:
q(curved),i(virgin),e(en passant), explicit(x,y)vectors, the universal leaperU, and multi-leg moves viaa. Thei/e/tones need new optional BoardState hooks (isVirgin, isEnPassantTarget, isRoyal).@andOare not implemented, since they need a hand and a move history rather than just coordinates.