i hacked the stockfish lichess.org/analysis/rnbqkbnr/pppppppp/8/8/4K3/8/PPPPpPPP/RNBQpBNR_w_KQkq_-#1
make a move in it
Looks like the analysis board doesn't like it when you start it on a position where there is a black pawn on the first rank or a white pawn on the eighth rank :)
yeah
Really, you're going to make me fix this? /sigh
It's probably best to require the analysis tool to validate legality of the FEN:
lichess.org/analysis/fromPosition/rnbqkbnr/pppppppp/8/8/3KK3/8/PPPPpPPP/RNBQpBNR_w_kq_-_0_1
lichess.org/analysis/fromPosition/rnbqkbnr/pppppppp/8/8/3KK3/8/PPPPpPPP/RNBQpBNR_w_kq_-_0_1
Stockfish already has a way to validate each time a position is set up, just it's normally used for debugging purposes because it reduces performance:
github.com/official-stockfish/Stockfish/blob/f7bae2de82347c61897b8de62d294dd0e4fc579e/src/position.cpp#L323
stockfish: position.cpp:2506: bool Position::pos_is_ok() const: Assertion `0 && "pos_is_ok: Pawns"' failed.
github.com/official-stockfish/Stockfish/blob/f7bae2de82347c61897b8de62d294dd0e4fc579e/src/position.cpp#L323
stockfish: position.cpp:2506: bool Position::pos_is_ok() const: Assertion `0 && "pos_is_ok: Pawns"' failed.
im not making u fix this im just saying it looks cool
@Toadofsky u had 1 too many kings in that link
@realpawn Oops, you're right... here we go:
lichess.org/analysis/fromPosition/rnbqKbnr/pppppppp/8/8/4K3/8/PPPPpPPP/RNBQpBNR_w_kq_-_0_1
lichess.org/analysis/fromPosition/rnbqKbnr/pppppppp/8/8/4K3/8/PPPPpPPP/RNBQpBNR_w_kq_-_0_1
This topic has been archived and can no longer be replied to.