krestenlaust / ChessGame

Chess-engine designed and implemented by my friends, Cogo and Patrick, and I. Features AI opponent (using minimax), Lichess integration and multiplayer-on-LAN.
5 stars 1 forks source link

Instantiate chessboard with FEN string #5

Open krestenlaust opened 1 year ago

krestenlaust commented 1 year ago

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 commented 1 year ago

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

krestenlaust commented 1 year ago

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 commented 1 year ago

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