Commit Graph

86 Commits

Author SHA1 Message Date
stefiosif
316f40e6e5 Remove tt cutoffs, fix capture move sorting, refactor 2024-11-30 00:04:53 +02:00
stefiosif
f5b7056347 Merge branch 'master' of https://github.com/stefiosif/zeal 2024-11-13 21:48:14 +02:00
stefiosif
c2414c3f6e Make mvv_lva to map pieces to their material score instead of abritrary matrix
Add time limits, use anyhow crate to improve error handling, remove depth limit on quiescence search
2024-11-13 21:47:26 +02:00
stefiosif
3328cd6ae5 Merge branch 'master' of https://github.com/stefiosif/zeal 2024-11-13 21:43:13 +02:00
stefiosif
39322ff0e1 Add time limits, use anyhow crate to improve error handling, remove depth limit on quiescence search 2024-11-13 21:33:21 +02:00
stefiosif
6cbde05e1e Add time limits, use anyhow crate to improve error handling, remove depth limit on quiescence search 2024-11-13 21:16:49 +02:00
stefiosif
30d90cb3a0 Make mvv_lva to map pieces to their material score instead of abritrary matrix 2024-11-13 21:13:05 +02:00
stefiosif
429485ae73 Use one TT per game, use time manger in ID 2024-11-10 14:22:24 +02:00
stefiosif
cb26faf892 Fix size overflow of rook attack magic bitboard 2024-11-10 14:21:28 +02:00
stefiosif
aba551ce7f Initiate end game psqt based on material scores 2024-11-10 14:19:26 +02:00
stefiosif
e2d3185bbe Add tt node in case of best score >= alpha 2024-11-10 14:17:55 +02:00
stefiosif
c724eca21c Use LazyLock for attack tables, remove all unsafe blocks 2024-11-03 23:48:45 +02:00
stefiosif
1b28de5064 Refactor based on clippy, move tt to search module and call iterative deepening from uci_go 2024-11-03 01:19:12 +02:00
stefiosif
802bdcdb37 Add basic iterative deepening implementation 2024-10-29 22:55:35 +02:00
stefiosif
ff6bbafc50 Add depth limit on quiescence, add node/timer measurements 2024-10-16 21:36:48 +03:00
stefiosif
b2df931d48 Probe TT at each negamax recursion and store entries based on bounds 2024-10-14 23:57:54 +03:00
stefiosif
33617df497 Add basic parts of the Transposition Table 2024-10-13 17:32:42 +03:00
stefiosif
c40e8478c8 Add tests for Zobrist hashing 2024-10-09 20:54:12 +03:00
stefiosif
7f6cfb93a2 Remove redundant PieceType params 2024-10-06 11:32:39 +03:00
stefiosif
3fd3b1ea96 Rename fn names for better readability 2024-10-06 11:15:29 +03:00
stefiosif
28409d203a Add Zobrist hashing 2024-10-06 03:31:33 +03:00
stefiosif
70ba30ba1a Replace loops with mailbox lookups and move make/unmake tests to game.rs 2024-09-21 17:51:39 +03:00
stefiosif
8a40186f8b Update gitignore 2024-09-21 15:42:53 +03:00
stefiosif
a96d3d27b1 Pass Mailbox instead of Game on related functions for clarity 2024-09-21 15:42:41 +03:00
stefiosif
1ed4a0c2f9 Add README.md 2024-09-20 23:46:09 +03:00
stefiosif
f74f1ef364 Implement redundant mailbox representation 2024-09-19 22:57:03 +03:00
stefiosif
3739e6e169 Fix sigkill 9 running out of memory issue 2024-09-16 19:33:05 +03:00
stefiosif
f128b35252 Move make/unmake and History on Game 2024-09-16 19:33:05 +03:00
stefiosif
3383435af7 Move MoveParameter handling inside make/unmake_move 2024-09-16 19:33:05 +03:00
stefiosif
6badbcd776 Rename movegen module files and make readability improvements 2024-09-16 19:33:05 +03:00
stefiosif
062a2fe903 Rename project 2024-09-16 19:32:45 +03:00
stefiosif
49b413d24f Refactor make_move, internal functions, move parsing and add more tests 2024-09-14 20:55:00 +03:00
stefiosif
b26357a205 Add move ordering heuristic MVV/LVA 2024-09-14 20:29:53 +03:00
stefiosif
d3c4078fcc Change PSQT at endgame 2024-09-14 20:22:45 +03:00
stefiosif
2093d91dfa Refactor some clippy-pedantic errors 2024-09-06 20:30:57 +03:00
stefiosif
6b9650a6f0 Improve readability and remove redundant code 2024-09-06 20:07:10 +03:00
stefiosif
2081ddac56 Add clap and update scripts 2024-09-06 19:05:42 +03:00
stefiosif
0815837cd5 Return early if king is under check and small refactorings 2024-09-04 18:57:00 +03:00
stefiosif
fec27b0d02 Implement quiescence search for leaf nodes 2024-09-04 18:56:20 +03:00
stefiosif
e817229d12 Convert minimax to negamax and implement alpha-beta pruning 2024-09-03 20:35:08 +03:00
stefiosif
ba0cbf4d7d Add minimax and adapt UCI tests 2024-09-01 14:15:02 +03:00
stefiosif
e61d247411 Make more readability refactorings 2024-08-28 23:27:40 +03:00
stefiosif
46cf0f0d1f Implement unmake move 2024-08-28 21:08:32 +03:00
stefiosif
21076da68c Add utility functions for readability and refactor make_move 2024-08-28 21:07:22 +03:00
stefiosif
6c8f445fa9 Add LICENSE 2024-08-15 00:08:04 +03:00
stefiosif
336e2d8284 Add UCI communication example 2024-08-15 00:07:49 +03:00
stefiosif
b3d5930037 Remove uncommitted move_ordering from mod.rs 2024-08-14 22:01:10 +03:00
stefiosif
ed711f905d Refactor project structure to use submodules 2024-08-14 21:58:20 +03:00
stefiosif
69cabd5b58 Rename Kind to PieceType for clarity 2024-08-14 20:53:08 +03:00
stefiosif
c5267d0e2b Fix uci_position bugs and add test 2024-08-14 00:25:15 +03:00