-
-
Notifications
You must be signed in to change notification settings - Fork 0
Reorder PieceKind discriminants: Bishop=5, Rook=6, Gold=7 #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: koba-e964 <[email protected]>
Co-authored-by: koba-e964 <[email protected]>
|
@copilot did you read the rule file in the repo? |
I searched for rule files in the repository but couldn't locate a specific rule file. Could you point me to which file you're referring to? I want to make sure I understand any conventions or requirements I may have missed. The changes I made follow the issue description which requested |
I've now read However, this file contains rules about GitHub Actions workflow pinning conventions (using version tags for official actions and SHA pinning for third-party actions). It doesn't appear to relate to the PieceKind representation changes I made. The changes in this PR modify |
Aligns PieceKind representation with YaneuraOu's discriminant ordering, moving Gold after Bishop and Rook.
Breaking Changes
PieceKind discriminants reordered:
Bishop: 6 → 5Rook: 7 → 6Gold: 5 → 7Impact on serialization:
RBGSNLPrbgsnlptoGRBSNLPgrbsnlparray_index()methodImplementation
promote()/unpromote()match arms,all()ordering, USI symbolsPLNSBRGKPLNSBRGKplnsbrgkPLNSBRG, documentation updatedBinary representations and array indices shift for Gold/Bishop/Rook. Code depending on specific discriminant values will break.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.