claude
aa97abaadc
Add Chess960 (FRC) and DFRC support
...
- castling moves are stored as "king takes own rook" (from = king square, to = castling rook square)
- per-colour castling rook squares (Board::castleRook), so DFRC (different back ranks for white/black) works
- FEN parsing/printing: KQkq (X-FEN) and Shredder-FEN file letters
- Board::CanCastle(): generic castling legality (empty paths, king not attacked, rook x-ray check)
- MakeMove handles arbitrary king/rook start squares (king and rook may stay in place or swap through each other's squares)
- UCI_Chess960 option: castling printed/parsed as king-takes-rook when on, standard e1g1 style otherwise (both are accepted when parsing)
- viri format, perft castle check and castling right updates no longer assume a1/h1/a8/h8
2026-10-11 00:12:02 +02:00
rektdie
3a813876f4
prettier printings | bench 1632393
2026-10-05 19:38:58 +02:00
rektdie
48bbfa7114
fixed rare ep legality bug | bench 1812688
2026-02-19 16:16:32 +01:00
rektdie
320c43cdd3
cleanup | bench 1812688
2026-02-19 15:12:17 +01:00
rektdie
a9b51e384f
isLegal function | bench 1812688
2026-02-19 15:06:57 +01:00
rektdie
e8aec47b71
added new movegen type: quiets | bench 5105878
2025-10-12 23:40:18 +02:00
rektdie
3225b9c665
encapsualted position index and array | bench 1857933
2025-04-12 20:39:00 +02:00
rektdie
12c600e1c4
was making every move twice | bench 888803
2025-03-25 11:52:36 +01:00
rektdie
d4c7263b93
fixed checkmate and stalemate detection
2025-03-24 20:01:32 +01:00
rektdie
2943fccce6
introduced basic InCheck and IsLegal
2025-03-24 16:45:27 +01:00
rektdie
d0ba47c956
removed attack maps
2025-03-24 02:08:26 +01:00
rektdie
28ce0bc64c
generating pawn moves
2025-03-24 00:33:21 +01:00
rektdie
8d5024a4a4
bugfix: perft
2025-03-20 20:23:22 +01:00
rektdie
20ab2f476a
refactor in several areas
2025-03-20 20:20:24 +01:00
rektdie
7fb413fb01
swapped every \n with std::endl
2025-03-12 14:39:45 +01:00
rektdie
4b1ce8f8ea
small refactor in perft printing | bench 4118297
2025-03-10 22:28:20 +01:00
rektdie
325db852c4
stopwatch
2025-03-10 22:26:43 +01:00
rektdie
6e8f7e3d86
using fixed size array instead of vector to store moves
2024-06-19 02:30:28 +02:00
rektdie
ae581e0f03
bugfix: GetPinningRay jumped through the board
2024-04-11 12:17:10 +02:00
rektdie
d6574824fd
bugfix: epCapture on square a1 was possible
2024-04-10 10:13:52 +02:00
rektdie
494cd13f7e
added perft back + fixed some bugs with movegen
2024-04-09 21:44:33 +02:00
rektdie
09dfeb7198
Cleared previous method of movegen
2024-04-04 22:49:56 +02:00
rektdie
cc4409ef3d
added nps measurement to perft
2024-04-04 08:25:09 +02:00
rektdie
7dd2bd8823
removed time measurement from perft (temporarily)
2024-04-03 20:08:54 +02:00
rektdie
693cfd07ac
added bulk counting to perft + reorganized it's outputs
2024-04-03 08:31:42 +02:00
rektdie
5962c37546
Added perft function + fixed some move generation bugs(there are still some)
2024-04-01 22:04:43 +02:00