Commit bc2a69b
committed
feat: Improve search, evaluation, and move ordering
This commit introduces several enhancements to the search algorithm, evaluation function, and move ordering techniques to improve the engine's performance.
- Makefile: Added -pthread flag to ensure proper threading support.
- search.hpp: Reduced PV move array size, added nodes counter and seldepth.
- move_ordering.hpp: Changed moveOrder signature to include ttMove, added see prototype.
- CMakeLists.txt: Added threading support and platform-specific configurations.
- eval.h: Removed unused popcount and lsb implementations, added MoveStack class, added trace function prototype.
- main.cpp: Implemented benchmark mode, fixed bestmove output, added eval command.
- move_ordering.cpp: Implemented SEE (Static Exchange Evaluation) for move ordering.
- search.cpp: Implemented iterative deepening with aspiration windows, quiescence search, LMR (Late Move Reduction), and TT probing.
- eval.cpp: Rewrote evaluation function with material, pawn structure, mobility, king safety, space, tempo, and PSQT (Piece-Square Table) evaluation. Added trace function to print evaluation breakdown.1 parent bb7dea0 commit bc2a69b
File tree
9 files changed
+640
-625
lines changed9 files changed
+640
-625
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments