Commit Graph

161 Commits

Author SHA1 Message Date
Mattia Giambirtone 4cba3824fc
Major tuner fixes and improvements 2024-05-17 00:55:45 +02:00
Mattia Giambirtone f53e149af0
Update evaluation and tuner 2024-05-16 14:14:25 +02:00
Mattia Giambirtone 46be23dbb7
Update README 2024-05-15 16:26:10 +02:00
Mattia Giambirtone 946905293d
Fixes to isNotMated and add TT probing in qsearch 2024-05-15 15:52:35 +02:00
Mattia Giambirtone d4dfa6b325 Fix clear() proc for transposition table 2024-05-15 11:09:09 +02:00
Mattia Giambirtone 30b3de233f
Add missing tuner 2024-05-15 00:26:58 +02:00
Mattia Giambirtone 35a21ec8c9
Further work on the tuner. Experimental thread voting (disabled). Preparation for eval improvements 2024-05-15 00:25:23 +02:00
Mattia Giambirtone 53406cb94f
Fix stupid issues with create() (kill me I'm an idiot) 2024-05-14 12:08:49 +02:00
Mattia Giambirtone 5b3c244206
Fix issues with joinThread and fix nps scaling issues by not using atomic node counters 2024-05-14 11:20:03 +02:00
Mattia Giambirtone e54fc56925
Remove buggy calls to joinThread in parallel search 2024-05-14 02:07:59 +02:00
Mattia Giambirtone 403d5555f1
Experimental parallel search support 2024-05-14 01:45:33 +02:00
Mattia Giambirtone 836e9e6a34
Time limits are updated when the engine stops pondering 2024-05-13 18:31:23 +02:00
Mattia Giambirtone d9e183caf3
Hopefully fix pondering bugs 2024-05-13 17:11:24 +02:00
Mattia Giambirtone 6adae84bca
Minor refactoring and cleanup 2024-05-13 14:51:21 +02:00
Mattia Giambirtone 7fcdf25dbb
Fix SEE bugs and ensure getKingAttacks works even if the king is removed from the board 2024-05-13 14:47:36 +02:00
Mattia Giambirtone 2c840f2f3c
Remove buggy ponder move tracking as it is already handled by the UCI spec 2024-05-12 23:18:53 +02:00
Mattia Giambirtone 133cde53b2 Initial work on tuning via pytorch 2024-05-12 20:23:10 +02:00
Mattia Giambirtone 9a7139cdd5 Updated .gitignore 2024-05-12 20:11:57 +02:00
Mattia Giambirtone 218069cc92 Implement pondering 2024-05-12 15:30:10 +02:00
Mattia Giambirtone 1e33ead8a2 Mate score is now positive. Fix mate score reporting. Initial work on eval improvements. Fix passed pawn masks 2024-05-12 14:35:52 +02:00
Mattia Giambirtone db76565aa8 Implement QSEE pruning (gains 52.9 +/- 25.2). Initial work on history malus. Reset search state after ucinewgame + minor other fixes 2024-05-12 01:02:47 +02:00
Mattia Giambirtone ec309c9d4d Implement QSEE pruning 2024-05-11 15:08:58 +02:00
Mattia Giambirtone 25677ae2c6 Add improved NMP reduction scheme (20.1 +/- 14) 2024-05-11 12:50:33 +02:00
Mattia Giambirtone 9331729d76 Add SEE to move ordering (gains 44.7 +/- 22.9) 2024-05-11 11:25:45 +02:00
Mattia Giambirtone ca3f13ef04 Fix movegen bug with king attacks, implement SEE and related tests (still not integrated) 2024-05-11 09:43:58 +02:00
Mattia Giambirtone 7c19d42638 Initial work on standpat evaluation, move Qsearch TT probing into separate option. Initial work on LMP 2024-05-10 15:26:06 +02:00
Mattia Giambirtone fc07d50ec1 Initial work on SEE 2024-05-10 15:12:59 +02:00
Mattia Giambirtone 2f39e42448 Apply minor fixes to FP (still untested) 2024-05-10 14:29:47 +02:00
Mattia Giambirtone fdf71bbfce Add untested FP 2024-05-10 13:25:55 +02:00
Mattia Giambirtone 9b049cdcec Implement RFP (elo gains 41.5 +/- 21.9) 2024-05-10 13:16:12 +02:00
Mattia Giambirtone b9fbb9eb3f Implement null move pruning (+34.5 +/- 19.6), minor changes and fixes 2024-05-10 11:21:57 +02:00
Mattia Giambirtone 887e2a64a3 WIP refactoring for aspiration window, minor other changes 2024-05-09 15:45:39 +02:00
Mattia Giambirtone e0914e2eb5 Refactor move ordering, implement killer moves, probe TT in qsearch, initial work on aspiration windows 2024-05-09 10:15:00 +02:00
Mattia Giambirtone 9ffa7f6ea6 Fix searches with time per move, preliminary work on eval improvements, minor changes and fixes 2024-05-07 13:40:48 +02:00
Mattia Giambirtone d9f16c5ceb Fix LMR threshold 2024-05-07 00:34:24 +02:00
Mattia Giambirtone 7292356948 Fix crashing, implement LMR and tempo bonus 2024-05-06 23:48:40 +02:00
Mattia Giambirtone 2a1f020edd Fix bugs with LMR (needs testing). Move to ptrs. General refactoring 2024-05-06 00:34:06 +02:00
Mattia Giambirtone 245a5d75e8 Initial work on killer moves. Add soft tm (gains 41.8 +/- 22.0) 2024-05-05 16:07:37 +02:00
Mattia Giambirtone 651acd26ed Implement history euristic (gain: 73.1 +/- 30.2) 2024-05-05 13:37:33 +02:00
Mattia Giambirtone 0695fff442 Refactor code to eliminate refs shared across thread boundaries 2024-05-04 20:30:26 +02:00
Mattia Giambirtone 98668ae66e Check extensions (gain 89.5 +/- 34.0) and initial work on draw by insufficient material detection 2024-05-03 17:10:18 +02:00
Mattia Giambirtone d5f3071733 Remove useTT compile time flag 2024-05-02 19:08:30 +02:00
Mattia Giambirtone 5100bc744c Fix TT: Gains 83.0 +/- 32.5 elo 2024-05-02 19:07:20 +02:00
Mattia Giambirtone 9a41ba50ff Uncomment tt cutoff code 2024-05-02 15:41:30 +02:00
Mattia Giambirtone 316a63303c Fix incremental zobrist hashing, fix repetition detection, add ttmove, wait for search thread to complete 2024-05-02 14:39:46 +02:00
Mattia Giambirtone fe453aa3fd Hopefully fix crashing issues 2024-05-02 00:24:57 +02:00
Mattia Giambirtone fe7e64e9c3 Refactor chessboard code and move most logic to Position 2024-05-01 19:46:28 +02:00
Mattia Giambirtone 4cb994a3a6 Minor tweaks 2024-05-01 18:10:38 +02:00
Mattia Giambirtone 2de3f64562 Move the mailbox into the position object and get rid of update(). Minor UI tweaks 2024-05-01 18:02:17 +02:00
Mattia Giambirtone e6dd6fcf4c Minor refactoring and cleanup. Switch away from boehm GC as that's too slow 2024-05-01 16:54:08 +02:00