Skip to content
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

Instantiate chessboard with FEN string #5

Open
krestenlaust opened this issue Jan 25, 2023 · 3 comments
Open

Instantiate chessboard with FEN string #5

krestenlaust opened this issue Jan 25, 2023 · 3 comments
Labels
Core (ChessGame) Related to Chess core enhancement New feature or request good first issue Good for newcomers

Comments

@krestenlaust
Copy link
Owner

krestenlaust commented Jan 25, 2023

Why?
This would make test code much nicer when setting up specific position.
It also allows setting up the board on Lichess, then simply "importing" it.

Where?
Probably just directly in the Chessboard class.

Documentation: https://www.chess.com/terms/fen-chess

@krestenlaust
Copy link
Owner Author

Should probably 'only' support 8x8 boards, otherwise the FEN would be nonstandard

@krestenlaust krestenlaust added enhancement New feature or request good first issue Good for newcomers Core (ChessGame) Related to Chess core labels Jan 25, 2023
@krestenlaust
Copy link
Owner Author

This should also make the transposition table much more memory efficient, storing only a FEN-string as key, as opposed to a whole object.

@krestenlaust
Copy link
Owner Author

It should be possible to make an extended FEN-standard for non-standard boardsizes, this would allow for general improvement of bots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core (ChessGame) Related to Chess core enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant