434 Commits

Author SHA1 Message Date
8d46ff9829 move-do: use castling flags, other improvements (~12% on perft)
- always set K square and castling flags (remove expensive tests on K and castling flags)
- simplify castling rook move
- more restrictive sq_castle[]
2024-09-12 08:37:30 +02:00
8bf4262e11 position: use XOR in square clr/set, for castling flags to 8 bits 2024-09-11 08:14:55 +02:00
9dd7c7064d perft-test: improve displayed info, add selective tests
- print total #tests, #tests to do and VERSION string
- add starting point for tests, and #tests to run
2024-09-11 08:09:40 +02:00
7e65fbc205 change some bit macros, fix pst_init bug (thx gcc!), TT mask 64 bits 2024-09-04 20:07:19 +02:00
cf77a78aa6 Makefile: Fix dev/debug flags (issue with -Og & -g) 2024-09-04 20:01:18 +02:00
7ae6604e10 Makefile: add dependency on brlib file 2024-08-08 08:43:14 +02:00
f7a6e582ed movegen: add pos_gen_legal() to simplify code 2024-08-05 08:40:03 +02:00
e1debcc3ae create (unused) thread.[ch] files.
I am still unsure if I will go to thread or process...
2024-07-31 07:30:20 +02:00
01af1f5c49 separate perft (from search.c) 2024-07-29 09:56:27 +02:00
6ea77c85e1 Restore duplicated search.c and 1 others 2024-07-29 08:11:41 +02:00
3fb0c92653 Splitting 'search.c' and 1 others 2024-07-29 08:11:41 +02:00
a6a21626c7 uci: complete option/setoption
- eval-defs.c: add parameter type in ev_params
- util.c:
  - new str_eq_case()
  - new str_skip_word
  - str_token(): split string before token
2024-07-28 15:14:07 +02:00
2cd1289cd6 misc.c -> util.c, add str_token()
move util funtions declarations to util.h
2024-07-27 14:02:07 +02:00
d5920886a3 add uci pst option (not handled) 2024-07-25 09:56:27 +02:00
4733a1d65f add structure for eval parameters 2024-07-25 09:27:30 +02:00
c93ed5ba01 cleanup 2024-07-25 09:26:07 +02:00
e5a9303d08 simplify pos_clear 2024-07-25 09:24:31 +02:00
beaa68cb10 add UCI specs 2024-07-23 11:04:03 +02:00
99658316fb move all uci to uci.c, eval variables to eval-defs.c 2024-07-22 21:07:46 +02:00
448057bd27 rename src/eval-values.c -> src/eval-defs.c 2024-07-22 21:01:02 +02:00
4a73de8dd8 Merge split-file 2024-07-22 19:29:21 +02:00
3bbc9ea7b8 Restore duplicated src/eval-simple.c and 1 others 2024-07-22 19:29:21 +02:00
db00014eef Splitting 'src/eval-simple.c' and 1 others 2024-07-22 19:29:21 +02:00
98c54553d0 Combo changes
- move eval_material to eval-simple.c
- move phase_t to eval.h
- init.c: add eval init
- piece.h: add  piece_midval/piece_endval
- fen.c: add phase calculation
- eval-simple: fix calc_phase
2024-07-22 18:56:54 +02:00
a4c413bea3 fen tests cleanup 2024-07-22 09:33:27 +02:00
e630a73f26 remove test FEN dups 2024-07-22 09:16:27 +02:00
c8fd3b87ac add Rodent-III FEN tests 2024-07-22 09:03:31 +02:00
14a2cae072 eval-simple.c: game phases, multiple PST 2024-07-21 18:10:33 +02:00
30ac647fe5 update bug_on (brlib + hash.c + position.h), new alloc.[ch] 2024-07-15 08:23:11 +02:00
ca76b28b00 Makefile: simplify flags/build, adapt Emacs .dirs-local.el 2024-07-15 08:13:39 +02:00
f8bb5c06e5 comment move_find_in_movelist() limitations 2024-07-10 07:51:29 +02:00
f52454903c cleanup 2024-07-10 07:50:31 +02:00
5401e83db8 Memory allocation: moved to alloc.[ch] 2024-07-10 07:49:44 +02:00
3100504fa2 Makefile: add 'build=' option 2024-07-10 07:47:02 +02:00
470109768f finalize hyperbola funcs/files rename: Makefile, wrong calls, etc... 2024-07-06 20:44:25 +02:00
96be21231b improve git-split.sh (multiple splits, etc...) 2024-07-06 19:27:22 +02:00
7ce64c3aee rename hyperbola-quintessence files to hq 2024-07-06 19:16:47 +02:00
23051cb427 rename hyperbola functions to hq 2024-07-06 19:11:56 +02:00
8483ffa101 cleanup 2024-07-05 08:23:16 +02:00
a8f7bd12b8 add tricky FEN from talkchess 2024-07-03 21:13:15 +02:00
73d09ec37f perft: fix divide (untested for ages!). perft-test: SF uses divide 2024-07-03 21:10:41 +02:00
2870101896 move_from_str(): fix new move_t promotion 2024-07-03 21:09:00 +02:00
91abc3e26d convert piece_t, square_t etc. to u8 (no more typed enum. See C23 ?). 2024-07-03 08:49:54 +02:00
902c224aa9 simplify promotion generation 2024-07-02 17:28:35 +02:00
44f604abac cleanup 2024-07-01 14:06:51 +02:00
a2451d79db finish fitting move_t in 16 bits 2024-07-01 13:56:13 +02:00
58c985f52f eval.c, eval-simple.c: start to migrate from 0x88 (does not compile) 2024-06-30 10:00:35 +02:00
4d1870ffb3 eval_t: s16 + add in pos_t + remove useless opening pieces values 2024-06-30 09:59:18 +02:00
e18a237347 empty MEMO.org 2024-06-29 11:47:02 +02:00
6fc1ebcc9a add 'hist' command, fix strkok fails, use move_find_in_movelist 2024-06-29 11:37:16 +02:00