Commit graph

19 commits

Author SHA1 Message Date
Bruno BELANYI 29e50a65dc Add '_inplace' suffix to 'ChessBoard::play_move' 2024-04-06 12:17:22 +01:00
Bruno BELANYI 5dce65c570 Use lower-case in error messages 2024-04-06 11:17:45 +01:00
Bruno BELANYI fd7ff60e1b Rename 'ChessBoard::{,un}play_move' 2024-04-06 11:11:41 +01:00
Bruno BELANYI 1c8a101689 Simplify 'Move'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
Making 'Move' lightweight sounds like a better idea now that I am
looking at it with fresh eyes...
2024-04-05 22:41:24 +01:00
Bruno BELANYI d74605ba5c Use 'NUM_VARIANTS' where appropriate 2024-04-03 21:26:18 +01:00
Bruno BELANYI 7d9c5edb99 Rename 'ValidationError'
This is a better, clearer name.
2024-04-03 21:26:18 +01:00
Bruno BELANYI 353271f427 Simplify 'FromFen' for 'ChessBoard' 2024-04-01 23:11:43 +01:00
Bruno BELANYI f4764f2174 Use turn counts in 'ChessBoardBuilder'
This makes more sense from a user's perspective.
2024-04-01 22:48:55 +01:00
Bruno BELANYI 62c2be48c4 Move FEN-related tests to its module 2024-04-01 22:47:59 +01:00
Bruno BELANYI c3be661719 Move 'FromFen' for 'ChessBoard' into 'fen' module 2024-04-01 22:47:59 +01:00
Bruno BELANYI 829362dbce Add 'From<InvalidError>' for 'FenError' 2024-04-01 22:47:59 +01:00
Bruno BELANYI 127dea25b4 Add validation error detail in 'FenError' 2024-04-01 22:20:39 +01:00
Bruno BELANYI ddcef6f9c0 Add 'FenError::InvalidPosition' variant 2024-04-01 22:20:39 +01:00
Bruno BELANYI 64e93b39fd Add FEN castling rights parsing 2024-04-01 22:20:39 +01:00
Bruno BELANYI 7c896d5dba Add FEN piece type parsing 2024-04-01 22:20:39 +01:00
Bruno BELANYI b5365f8a82 Add FEN en-passant target square parsing 2024-04-01 22:20:39 +01:00
Bruno BELANYI 3c2a5a412e Add FEN side to move parsing 2024-04-01 22:20:39 +01:00
Bruno BELANYI bd662fdd27 Introduce 'FenError' enum 2024-04-01 22:20:39 +01:00
Bruno BELANYI 0fd9766db0 Add 'FromFen' trait 2024-04-01 22:20:39 +01:00