Skip to content

Fix parse_rank(), rank_name() - #1205

Open
jacksonthall22 wants to merge 1 commit into
niklasf:masterfrom
hyprchs:master
Open

Fix parse_rank(), rank_name()#1205
jacksonthall22 wants to merge 1 commit into
niklasf:masterfrom
hyprchs:master

Conversation

@jacksonthall22

Copy link
Copy Markdown
Contributor

I apparently committed this bug 11 months ago in #1163. Codex found it while helping me build chess.ts, a transpilation of python-chess to typescript. I basically instruct it to go commit by commit and reproduce the diffs as faithfully as possible, notwithstanding syntax and a few language-specific patterns for which I document explicit instructions/conventions for how to transpile - but it's not supposed to make any decisions or changes, even if the python is wrong, unoptimized, etc. It initially, correctly, coded the bug into the typescript and left me a TODO to fix when it's patched in python-chess. Funny that otherwise I would have never noticed this 😛

jacksonthall22 added a commit to jacksonthall22/chess.ts that referenced this pull request Aug 19, 2026
Approved divergence from pinned python-chess 1ce4d3f8. Mirrors the proposed upstream correction in niklasf/python-chess#1205 (81f9000).
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.

1 participant