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
1e41671002
lazy accumulator updates with finny tables 1632393
2026-10-03 16:13:52 +02:00
rektdie
454d9e61c1
4 king input buckets in the net
...
bench: 1311861
2026-03-31 14:34:29 +02:00
rektdie
9885596770
prevent fp when move gives direct check | bench 1847720
2026-03-20 13:48:58 +01:00
rektdie
e06e1cdac1
added a redundant mailbox to board class | bench 1538206
2026-03-16 22:53:03 +01:00
rektdie
4b3e8020fa
major correction history | bench 1744326
2026-02-25 10:57:33 +01:00
rektdie
b929963f91
added pseudo legality checking and testing tt move in movepicker | bench 1801941
2026-02-25 01:17:15 +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
1fb235fb3f
added pinned and checker bitboard | bench 1812688
2026-02-19 12:49:49 +01:00
rektdie
1dd0e33d2b
added threats hist | bench 5938098
2025-09-17 00:42:04 +02:00
rektdie
32691d2d65
reworked corrhist handling | bench 6409786
2025-09-10 01:26:42 +02:00
rektdie
bf7adcb06b
added pawn corrhist | bench 4741642
2025-09-03 01:11:35 +02:00
rektdie
c3dbeb150e
qs-see | bench 3999438
2025-05-30 21:25:53 +02:00
rektdie
89639e01e6
Revert "Merge pull request #64 from rektdie/qs-see"
...
This reverts commit 1c8eb6074d , reversing
changes made to 8fa390ed5f .
2025-05-22 01:07:30 +02:00
rektdie
a529a949f0
added SEE to QS | bench 3986957
2025-05-20 22:29:18 +02:00
rektdie
5e18083113
implemented AttacksTo function | bench 4333527
2025-05-20 21:33:57 +02:00
rektdie
3de8f457da
printing fen on printboard | bench 1136338
2025-04-28 20:20:34 +02:00
rektdie
3225b9c665
encapsualted position index and array | bench 1857933
2025-04-12 20:39:00 +02:00
rektdie
74b6fa0b64
makefile fix
2025-04-10 03:32:02 +02:00
rektdie
b7e0b37ca8
added accumulator reset (not working properly yet)
2025-04-08 19:59:14 +02:00
rektdie
82c969a2ad
created basic nnue files and structures
2025-04-08 08:55:57 +02:00
rektdie
c0b76d81bb
separated playing games from run function
2025-04-03 03:15:45 +02:00
rektdie
1279a11808
added lmr table + small refactors | bench 3761943
2025-03-28 00:15:48 +01:00
rektdie
eb2cc35239
added fifty move rule | bench 902872
2025-03-25 19:05:00 +01:00
rektdie
120f36ebb6
separate attack maps by color and piece type | bench 902872
2025-03-25 17:14:14 +01: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
b9792e56da
fixed illegal castling
2025-03-24 18:21:07 +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
20ab2f476a
refactor in several areas
2025-03-20 20:20:24 +01:00
rektdie
9c3b76d6a0
small refactor in board
2025-03-20 19:42:22 +01:00
rektdie
4fc940c57e
renamed bitboard file
2025-03-20 19:24:16 +01:00
rektdie
d2b973b869
threefold detection | bench 1143648
2025-03-18 11:30:12 +01:00
rektdie
69a7855f96
started rewriting setbyfen + utils
2025-03-12 13:04:44 +01:00
rektdie
27f914eeaf
implemented NMP
2025-03-05 14:32:29 +01:00
rektdie
bc50eff52d
en passant bugfix
2025-03-03 22:54:26 +01:00
rektdie
00c3be28ba
fixed en passant bug
2025-03-03 22:25:33 +01:00
rektdie
8e26cc1013
fixed GetPieceType function
2025-03-03 20:12:06 +01:00
rektdie
2e984643c0
fixed bugs in hashKey generation + added incremental updates to it
2024-07-08 18:06:11 +02:00
rektdie
70bea0713c
storing castling rights cheaper
2024-06-19 16:01:35 +02:00
rektdie
6e8f7e3d86
using fixed size array instead of vector to store moves
2024-06-19 02:30:28 +02:00
rektdie
09dfeb7198
Cleared previous method of movegen
2024-04-04 22:49:56 +02:00
rektdie
e442906d66
Added attack maps and fixed illegal castle move generation
2024-04-04 02:17:18 +02:00
rektdie
e0444257b3
Simplified making and unmaking moves with helper functions + fixed minor bugs
2024-04-01 02:37:32 +02:00
rektdie
8535042c04
added UnmakeMove function to unmake the last move
2024-03-31 22:44:42 +02:00
rektdie
025ae1eceb
added promotion moves(with captures as well)
2024-03-31 20:39:40 +02:00
rektdie
2d777be0a5
added 3 move types to DoMove function
2024-03-30 16:45:10 +01:00