-
00fc61020c
"#define key_t" -> hkey_t type
Bruno Raoult
2024-06-06 07:38:01 +02:00
-
06904f8a77
cleanup fetch-all.sh
Bruno Raoult
2024-06-06 07:32:48 +02:00
-
431baa43d4
cleanup
Bruno Raoult
2024-05-30 10:47:02 +02:00
-
cee262e31d
fetch-all.sh: use git-branch - still "echo", no real command
Bruno Raoult
2024-05-28 09:44:34 +02:00
-
ec64e2e44d
replace pawn_shift_xxx with bb_pawns_attacks
Bruno Raoult
2024-05-28 09:40:20 +02:00
-
972046351b
fen: simplify fen_check() + fix e.p. when no possible capture
Bruno Raoult
2024-05-27 14:54:44 +02:00
-
a7495b67d2
update brlib
Bruno Raoult
2024-05-21 10:22:06 +02:00
-
8703c892af
Merge branch 'hash'
Bruno Raoult
2024-05-21 07:53:55 +02:00
-
-
1670b21dfa
fetch-all: add possible local branch creation (still only echo)
Bruno Raoult
2024-05-21 07:52:01 +02:00
-
07a545adae
protect hash_init() against multiple calls
Bruno Raoult
2024-05-21 07:49:49 +02:00
-
77695574aa
fetch-all.sh
Bruno Raoult
2024-05-18 13:38:27 +02:00
-
6da0f80d46
allow bug.h multiple inclusions (w/ different BUG_ON/WARN_ON values)
Bruno Raoult
2024-05-18 13:37:23 +02:00
-
f657f8498a
perft-test: output also SF perf
Bruno Raoult
2024-05-16 09:07:15 +02:00
-
4a0c734eba
perft: Avoid recursion at depth 2
Bruno Raoult
2024-05-16 09:06:44 +02:00
-
239498bc2a
cleanup
Bruno Raoult
2024-05-16 07:29:02 +02:00
-
a012af30fc
fix wrong recursive call in perft_test()
Bruno Raoult
2024-05-16 07:27:59 +02:00
-
d1cb1f3c2c
perft-test: re-use pos
Bruno Raoult
2024-05-16 07:27:35 +02:00
-
2069d6073d
add pos_copy(); pos->king[] set at higher level
Bruno Raoult
2024-05-16 07:16:17 +02:00
-
5db45a760a
fen: calc pos hash, hash: fix zobrist_init, add zobrist_verify
Bruno Raoult
2024-05-15 18:36:30 +02:00
-
86f8184c56
misc.c: init_all()
Bruno Raoult
2024-05-15 18:34:50 +02:00
-
022daf0a89
typedef key -> #define key_t - can't use typedef, due to <sys/types.h>
Bruno Raoult
2024-05-15 09:42:33 +02:00
-
9ef262af48
clean hash.c
Bruno Raoult
2024-05-14 11:57:51 +02:00
-
038f6b5669
add hash.c: zobrist init + pos zobrist calc + tt hash creation
Bruno Raoult
2024-05-14 11:40:44 +02:00
-
-
7baf66f1b6
add init.c, force BUG_ON in safe_malloc()
Bruno Raoult
2024-05-14 11:39:37 +02:00
-
a0b1d289a7
add rand funcs
Bruno Raoult
2024-05-06 07:47:14 +02:00
-
fec1dc68b5
fen-test: fix total stats when total time is 0 (like depth 1 or 2)
Bruno Raoult
2024-05-06 07:45:32 +02:00
-
32ade1777f
ren macros mask->BIT/C64->U64, del pinners/checkers/blockers in state_s
Bruno Raoult
2024-05-06 07:41:27 +02:00
-
c710da4bf9
move_do2: save/restore state inside func; perft: add silent option
Bruno Raoult
2024-04-18 09:54:58 +02:00
-
36e1d987f3
rename second perft function, perft_test()
Bruno Raoult
2024-04-17 18:43:09 +02:00
-
a13bdb04f1
sq_is_attacked: N before P
Bruno Raoult
2024-04-17 12:10:45 +02:00
-
b884c1d65c
Makefile: Use -Og instead of -O1 for dev build
Bruno Raoult
2024-04-17 12:09:38 +02:00
-
2505217c70
rename pos_all_legal() to pos_legal_dup(), new pos_legal()
Bruno Raoult
2024-04-17 09:13:21 +02:00
-
8b3202fac0
add CFLAGS -Wshadow and -funroll-loops, fix related common-test.h
Bruno Raoult
2024-04-17 08:21:20 +02:00
-
473cc8683e
perf-test: add command-line options, optional SF's perft compare
Bruno Raoult
2024-04-16 12:33:11 +02:00
-
f0acdb6a66
pos_ok(): always set BUG_ON and WARN_ON
Bruno Raoult
2024-04-16 12:32:37 +02:00
-
a49c712471
Makefile add support for multiple targets w/ first one not parallel
Bruno Raoult
2024-04-14 09:35:53 +02:00
-
2b72fac45e
comments, removal useless Makefile CFLAGS, etc...
Bruno Raoult
2024-04-14 09:10:31 +02:00
-
0330696f87
pseudo_is_legal(): use sq_is_attacked() instead of sq_attackers()
Bruno Raoult
2024-04-13 06:50:15 +02:00
-
a6eedebc19
perft: always use set_checkers_pinners_blockers() - To be cont'd
Bruno Raoult
2024-04-11 10:04:13 +02:00
-
ab31274d17
movegen: add some generic fonctions
Bruno Raoult
2024-04-11 10:03:35 +02:00
-
03da11cc9c
cleanup when using bug_on()/warn_on()
Bruno Raoult
2024-04-11 10:02:49 +02:00
-
bfed0f417d
merge movegen-review. Performance issue was in perft, not movegen !
Bruno Raoult
2024-04-10 17:49:08 +02:00
-
-
926dfa0765
untabify Makefile, cosmetic change in pos_set_checkers_pinners_blockers()
movegen-review
Bruno Raoult
2024-04-10 17:12:20 +02:00
-
374116b1e7
simplify pos_set_checkers_pinners_blockers() (cont'd)
Bruno Raoult
2024-04-10 15:59:24 +02:00
-
9b5c2253b1
Makefile: add -ginline-points
Bruno Raoult
2024-04-10 13:02:23 +02:00
-
e301e6c726
bug fix in perft() - stupid initialization !
Bruno Raoult
2024-04-10 12:57:39 +02:00
-
e78eae21e6
cleanup move_do()
Bruno Raoult
2024-04-10 12:57:08 +02:00
-
711306c92a
simplify/improve pos_set_checkers_pinners_blockers()
Bruno Raoult
2024-04-10 12:54:47 +02:00
-
660722fadc
cleanup
Bruno Raoult
2024-04-10 12:53:31 +02:00
-
e8240c6cab
move_make_promotions(), clean move_do(), pos_gen_pseudomoves()
Bruno Raoult
2024-04-09 08:15:43 +02:00
-
eb590f1438
bug fix, wrong perft recursion !
Bruno Raoult
2024-04-09 08:11:31 +02:00
-
f2ce20a504
add bb_pawn_attacks[][], bb_shift()
Bruno Raoult
2024-04-09 08:08:13 +02:00
-
027aa2c132
bb: bb_{first_bb,next,multiple{}, chessdefs: relative sq diffs
Bruno Raoult
2024-04-04 10:03:43 +02:00
-
30af886594
comment
Bruno Raoult
2024-04-02 21:18:01 +02:00
-
-
afecbeb955
movegen-test: add set_checkers_pinners_blockers call
Bruno Raoult
2024-04-02 20:40:44 +02:00
-
05748e19ab
Makefile: build static
Bruno Raoult
2024-04-02 20:38:50 +02:00
-
4816b4a53a
experiment: add pos_set_checkers_pinners_blockers()
Bruno Raoult
2024-03-30 18:45:13 +01:00
-
96744cea20
perft-test: option to run perft/perft2/both
Bruno Raoult
2024-03-29 10:00:01 +01:00
-
24207583d1
perft2: is_in_check() before recursion
Bruno Raoult
2024-03-29 09:59:14 +01:00
-
92d6909546
update (C) notice
Bruno Raoult
2024-03-28 10:37:52 +01:00
-
85ae4a2230
better comments on perft() and perft2()
Bruno Raoult
2024-03-28 09:41:39 +01:00
-
ad8a9609ce
misc.c: add a few basic clock functions
Bruno Raoult
2024-03-28 08:33:27 +01:00
-
ad704c216b
Merge branch 'perft': perft() and perft2() - see comments.
Bruno Raoult
2024-03-27 18:09:25 +01:00
-
-
26b9a5b58a
brchess func calls changes, always run perft() & perft2()
perft
Bruno Raoult
2024-03-27 12:53:42 +01:00
-
65fe74c9c5
movegen: don't separate promotions, perft: loop uses next_legal()
Bruno Raoult
2024-03-27 12:52:39 +01:00
-
9b2f5ff751
move_{do,undo}: do not save/restore pos state
Bruno Raoult
2024-03-27 12:42:45 +01:00
-
edcc87be5a
a few more perft debug tests
Bruno Raoult
2024-03-27 12:41:38 +01:00
-
09afd98971
fen2pos: no more pos_checkers etc... position.c: pos_check -> pos_ok (bool)
Bruno Raoult
2024-03-27 12:40:16 +01:00
-
08ba989170
is_legal: fix check+pinned and knight check; perft-test + perft2()
Bruno Raoult
2024-03-26 17:37:18 +01:00
-
7637bdad10
attack.c: sq_is_attacked() and is_in_check()
Bruno Raoult
2024-03-26 17:34:11 +01:00
-
70d6c23c00
position add: pos_set_pinners_blockers()
Bruno Raoult
2024-03-26 17:31:44 +01:00
-
-
aaeab03089
revert captured in position before change to move struct
Bruno Raoult
2024-03-23 19:49:35 +01:00
-
ce2e0e8459
add forgotten changes in bitboard-switch branch (git is so... difficult)
Bruno Raoult
2024-03-23 17:41:15 +01:00
-
d0279125ae
move_{do,undo}: FIX forgotten king[] update, add few bug_on()
Bruno Raoult
2024-03-23 17:37:40 +01:00
-
798047b84d
Merge branch 'bitboard-switch'
Bruno Raoult
2024-03-23 17:26:26 +01:00
-
-
856e3e52da
add movedo-test
bitboard-switch
Bruno Raoult
2024-03-21 07:00:20 +01:00
-
51a348c1e4
add pos_cmp (as a debug check after move_{do,undo})
Bruno Raoult
2024-03-21 06:58:56 +01:00
-
51c35e21f4
castling: lowercase macros, nove-{do,undo}: full (untested) version
Bruno Raoult
2024-03-20 10:00:07 +01:00
-
3a06407d5a
move: exclusive M_CAPTURE / M_EN_PASSANT
Bruno Raoult
2024-03-20 09:58:42 +01:00
-
ae6328ce26
position: add captured piece
Bruno Raoult
2024-03-20 09:57:10 +01:00
-
08064dd1a1
start bb-based move_do
Bruno Raoult
2024-03-19 18:30:31 +01:00
-
49705bc707
rename few macros to lowercase, add M_DPUSH move flag
Bruno Raoult
2024-03-19 18:29:02 +01:00
-
8527c3dee1
movegen: separate all captures (easier later handling)
Bruno Raoult
2024-03-18 10:12:35 +01:00
-
dc916f5c56
move.h: revert flags to direct bit mask
Bruno Raoult
2024-03-18 09:15:16 +01:00
-
748953a767
move-gen: separate pawn capture from en-passant (easier later testing)
Bruno Raoult
2024-03-18 09:13:51 +01:00
-
9c2e76442d
add a struct_group for move_do() irreversible changes
Bruno Raoult
2024-03-17 17:34:21 +01:00
-
49302c7a60
lowercase move flags macros
Bruno Raoult
2024-03-17 17:33:48 +01:00
-
db38b507ff
add gmon.out
Bruno Raoult
2024-03-17 17:30:51 +01:00
-
9d40a53aea
simplify pos_next_legal()
Bruno Raoult
2024-03-16 12:14:59 +01:00
-
260d8d34bd
move.h: simplify flags. movegen.c: add pos_next_legal()
Bruno Raoult
2024-03-16 10:06:55 +01:00
-
037d49e4ca
move-do: copy from pre-bitboard version
Bruno Raoult
2024-03-15 10:53:26 +01:00
-
4eb620a873
add occ param in sq_attackers()
Bruno Raoult
2024-03-15 09:14:10 +01:00
-
92dcb1e778
fix king move in pos_is_legal()
Bruno Raoult
2024-03-15 09:12:42 +01:00
-
c8aea61529
pos_checkers(): add occ parameter
Bruno Raoult
2024-03-15 09:11:28 +01:00
-
b3f0dd0534
add move_str()
Bruno Raoult
2024-03-15 09:10:32 +01:00
-
0f06ccb8db
simplify piece_details structure/functions (need to rewrite)
Bruno Raoult
2024-03-15 09:08:49 +01:00
-
3e477f7442
movegen-test: add SF/uci promotion parsing
Bruno Raoult
2024-03-15 09:07:02 +01:00
-
aba0113344
add piece-test
Bruno Raoult
2024-03-15 09:04:44 +01:00
-
cc7d91ebfb
default compile-command: make testing
Bruno Raoult
2024-03-15 09:03:30 +01:00
-
17d1dc52f9
movegen: pseudo_is_legal() and pos_legalmoves()
Bruno Raoult
2024-03-12 10:45:20 +01:00