74 Commits

Author SHA1 Message Date
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
01af1f5c49 separate perft (from search.c) 2024-07-29 09:56:27 +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
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
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
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
91abc3e26d convert piece_t, square_t etc. to u8 (no more typed enum. See C23 ?). 2024-07-03 08:49:54 +02:00
44f604abac cleanup 2024-07-01 14:06:51 +02:00
b8f0f6a120 remove MOVE_NO_MOVE (use only MOVE_NONE) 2024-06-28 11:43:52 +02:00
5cb90f5396 remove move-test 2024-06-25 13:16:47 +02:00
f4280dfa13 perft-test: add error and skipped counts 2024-06-24 09:01:55 +02:00
879bda850c pos_ok, remove unused var warnings for 'release' target 2024-06-20 09:04:54 +02:00
242b501404 cleanup 2024-06-20 05:36:42 +02:00
840202dc0e perft-test.c/common-test.h: add sentinel for temp tests / TT stats 2024-06-17 07:39:13 +02:00
148fef20ea add info in pos_print, start perft TT testing 2024-06-13 10:28:32 +02:00
8be03c6230 rename TT funcs to TT_xxx() 2024-06-12 07:50:19 +02:00
ebf01bc7db perft_test -> perft, perf -> perft_alt move2 -> move, move -> move_alt 2024-06-09 22:15:20 +02:00
5a2cdfca56 perft-test: add SF ucinewgame / isready + check sync 2024-06-08 20:10:17 +02:00
431baa43d4 cleanup 2024-05-30 10:47:02 +02:00
972046351b fen: simplify fen_check() + fix e.p. when no possible capture 2024-05-27 14:54:44 +02:00
f657f8498a perft-test: output also SF perf 2024-05-16 09:07:15 +02:00
239498bc2a cleanup 2024-05-16 07:29:02 +02:00
d1cb1f3c2c perft-test: re-use pos 2024-05-16 07:27:35 +02:00
86f8184c56 misc.c: init_all() 2024-05-15 18:34:50 +02:00
fec1dc68b5 fen-test: fix total stats when total time is 0 (like depth 1 or 2) 2024-05-06 07:45:32 +02:00
c710da4bf9 move_do2: save/restore state inside func; perft: add silent option 2024-04-18 09:54:58 +02:00
36e1d987f3 rename second perft function, perft_test() 2024-04-17 18:43:09 +02:00
2505217c70 rename pos_all_legal() to pos_legal_dup(), new pos_legal() 2024-04-17 09:13:21 +02:00
8b3202fac0 add CFLAGS -Wshadow and -funroll-loops, fix related common-test.h 2024-04-17 08:21:20 +02:00
473cc8683e perf-test: add command-line options, optional SF's perft compare 2024-04-16 12:33:11 +02:00
f0acdb6a66 pos_ok(): always set BUG_ON and WARN_ON 2024-04-16 12:32:37 +02:00
374116b1e7 simplify pos_set_checkers_pinners_blockers() (cont'd) 2024-04-10 15:59:24 +02:00
660722fadc cleanup 2024-04-10 12:53:31 +02:00
f2ce20a504 add bb_pawn_attacks[][], bb_shift() 2024-04-09 08:10:53 +02:00
027aa2c132 bb: bb_{first_bb,next,multiple{}, chessdefs: relative sq diffs 2024-04-04 10:03:43 +02:00
afecbeb955 movegen-test: add set_checkers_pinners_blockers call 2024-04-02 20:40:44 +02:00
4816b4a53a experiment: add pos_set_checkers_pinners_blockers() 2024-03-30 18:45:13 +01:00
96744cea20 perft-test: option to run perft/perft2/both 2024-03-29 10:00:01 +01:00
ad8a9609ce misc.c: add a few basic clock functions 2024-03-28 08:33:27 +01:00
26b9a5b58a brchess func calls changes, always run perft() & perft2() 2024-03-27 12:53:42 +01:00
edcc87be5a a few more perft debug tests 2024-03-27 12:41:38 +01:00
08ba989170 is_legal: fix check+pinned and knight check; perft-test + perft2() 2024-03-26 17:43:59 +01:00