Siderite / Siderite/lichessTools
Create methods to validate/fix FENs
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 92
- Forks
- 20
- Avg merge
- 19h 59m
- Merged PRs (30d)
- 1
Description
- check/remove castling permissions if there is no rook (or king) in the proper place
- check/remove en-passant if en passant is not possible
- check kings are on the board and only one of each
- check there are no checks on the king if the other side is to play
- check kings are not adjacent
- check no pawns on the first or eighth ranks (with fix to turn them to queens if promotion is possible)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the extension's FEN parsing or position-validation entry points; the issue does not name specific files or tests. Define how each listed validation and fix should behave, including castling, en passant, king placement, checks, adjacent kings, and pawns on promotion ranks. Done means invalid FEN positions are detected and the requested repairs are applied consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100