1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:44:58 +00:00
serenity/Userland/Libraries/LibChess
Sam Atkins b111782f18 LibChess: Include pawns in FEN output
Previously, the initial position would look like this:

rnbqkbnr//8/8/8/8//RNBQKBNR w KQkq - 0 1

Now, we correctly give pawns the P/p character in FEN output:

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1

Also, we only ever have 1 or 0 characters for a piece, so let's return
`Optional<char>` instead of `StringView` from `char_for_piece()`.
2023-04-24 20:58:35 +02:00
..
Chess.cpp LibChess: Include pawns in FEN output 2023-04-24 20:58:35 +02:00
Chess.h LibChess: Include pawns in FEN output 2023-04-24 20:58:35 +02:00
CMakeLists.txt Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
UCICommand.cpp LibChess: Move inputs when creating chess Commands 2023-04-24 20:58:35 +02:00
UCICommand.h LibChess: Move inputs when creating chess Commands 2023-04-24 20:58:35 +02:00
UCIEndpoint.cpp LibChess: Convert Commands to use String and propagate errors 2023-04-24 20:58:35 +02:00
UCIEndpoint.h LibChess: Allow UCIEndpoint to handle unexpected disconnections 2023-04-20 09:59:18 +01:00