330 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
7e65fbc205 change some bit macros, fix pst_init bug (thx gcc!), TT mask 64 bits 2024-09-04 20:07:19 +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
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
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
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
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
470109768f finalize hyperbola funcs/files rename: Makefile, wrong calls, etc... 2024-07-06 20:44:25 +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
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
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
6fc1ebcc9a add 'hist' command, fix strkok fails, use move_find_in_movelist 2024-06-29 11:37:16 +02:00
8c94c6beb1 add hist_link, hist_push: remove 'move' parameter 2024-06-29 11:35:33 +02:00
a44483e36c init_all: add output for all steps 2024-06-29 11:33:50 +02:00
bb13eae0b8 move-do: save move in state, pos-print: print last move 2024-06-28 11:44:38 +02:00
b8f0f6a120 remove MOVE_NO_MOVE (use only MOVE_NONE) 2024-06-28 11:43:52 +02:00
46f42ae59b move.c: complete move_from_str(), add move_find_in_movelist() 2024-06-28 09:35:56 +02:00
cffb0f7b95 hash.h: fix hash_short(), and hentry_t move size 2024-06-28 09:33:13 +02:00
c5a1936e3b UCI moves && games states list 2024-06-27 10:11:24 +02:00
46aed01079 hash: add hash_short macro, state_s: add prev and move 2024-06-27 08:36:08 +02:00
ffd5d056cc move_t flags: mask -> value, unique castling flag (1 bit saved) 2024-06-25 15:33:56 +02:00
da489bad65 update include syntax 2024-06-25 13:07:33 +02:00
d1cc7a8066 movegen: cleanup + change casling/king moves handling 2024-06-24 09:00:24 +02:00
cfa8b42077 add UCI "perft_alt" command 2024-06-24 08:52:23 +02:00
0c2d30c938 put back bug_on() following brlib change 2024-06-23 19:52:59 +02:00
3a6c1d11c0 rename util.h -> misc.h (2) 2024-06-23 19:22:22 +02:00
19d10fdfa8 rename util.h -> misc.h 2024-06-23 19:15:14 +02:00