Commit Graph

304 Commits

Author SHA1 Message Date
ab31274d17 movegen: add some generic fonctions 2024-04-11 10:03:35 +02:00
03da11cc9c cleanup when using bug_on()/warn_on() 2024-04-11 10:02:49 +02:00
bfed0f417d merge movegen-review. Performance issue was in perft, not movegen ! 2024-04-10 17:49:08 +02:00
926dfa0765 untabify Makefile, cosmetic change in pos_set_checkers_pinners_blockers() 2024-04-10 17:12:20 +02:00
374116b1e7 simplify pos_set_checkers_pinners_blockers() (cont'd) 2024-04-10 15:59:24 +02:00
9b5c2253b1 Makefile: add -ginline-points 2024-04-10 13:02:23 +02:00
e301e6c726 bug fix in perft() - stupid initialization ! 2024-04-10 12:57:39 +02:00
e78eae21e6 cleanup move_do() 2024-04-10 12:57:08 +02:00
711306c92a simplify/improve pos_set_checkers_pinners_blockers() 2024-04-10 12:54:47 +02:00
660722fadc cleanup 2024-04-10 12:53:31 +02:00
e8240c6cab move_make_promotions(), clean move_do(), pos_gen_pseudomoves() 2024-04-09 08:15:43 +02:00
eb590f1438 bug fix, wrong perft recursion ! 2024-04-09 08:11: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
30af886594 comment 2024-04-02 21:18:01 +02:00
afecbeb955 movegen-test: add set_checkers_pinners_blockers call 2024-04-02 20:40:44 +02:00
05748e19ab Makefile: build static 2024-04-02 20:38:50 +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
24207583d1 perft2: is_in_check() before recursion 2024-03-29 09:59:14 +01:00
92d6909546 update (C) notice 2024-03-28 10:37:52 +01:00
85ae4a2230 better comments on perft() and perft2() 2024-03-28 09:41:39 +01:00
ad8a9609ce misc.c: add a few basic clock functions 2024-03-28 08:33:27 +01:00
ad704c216b Merge branch 'perft': perft() and perft2() - see comments.
perft: normal "get_next_legal()" before movegen
perft2: is_in_check() after movegen
2024-03-27 18:09:25 +01:00
26b9a5b58a brchess func calls changes, always run perft() & perft2() 2024-03-27 12:53:42 +01:00
65fe74c9c5 movegen: don't separate promotions, perft: loop uses next_legal() 2024-03-27 12:52:39 +01:00
9b2f5ff751 move_{do,undo}: do not save/restore pos state 2024-03-27 12:42:45 +01:00
edcc87be5a a few more perft debug tests 2024-03-27 12:41:38 +01:00
09afd98971 fen2pos: no more pos_checkers etc... position.c: pos_check -> pos_ok (bool) 2024-03-27 12:40:16 +01:00
08ba989170 is_legal: fix check+pinned and knight check; perft-test + perft2() 2024-03-26 17:43:59 +01:00
7637bdad10 attack.c: sq_is_attacked() and is_in_check() 2024-03-26 17:34:11 +01:00
70d6c23c00 position add: pos_set_pinners_blockers() 2024-03-26 17:31:44 +01:00
aaeab03089 revert captured in position before change to move struct 2024-03-23 19:49:35 +01:00
ce2e0e8459 add forgotten changes in bitboard-switch branch (git is so... difficult) 2024-03-23 17:41:15 +01:00
d0279125ae move_{do,undo}: FIX forgotten king[] update, add few bug_on() 2024-03-23 17:37:40 +01:00
798047b84d Merge branch 'bitboard-switch' 2024-03-23 17:26:26 +01:00
856e3e52da add movedo-test 2024-03-21 07:00:20 +01:00
51a348c1e4 add pos_cmp (as a debug check after move_{do,undo}) 2024-03-21 06:58:56 +01:00
51c35e21f4 castling: lowercase macros, nove-{do,undo}: full (untested) version 2024-03-20 10:00:07 +01:00
3a06407d5a move: exclusive M_CAPTURE / M_EN_PASSANT 2024-03-20 09:58:42 +01:00
ae6328ce26 position: add captured piece 2024-03-20 09:57:10 +01:00
08064dd1a1 start bb-based move_do 2024-03-19 18:30:31 +01:00
49705bc707 rename few macros to lowercase, add M_DPUSH move flag 2024-03-19 18:30:10 +01:00
8527c3dee1 movegen: separate all captures (easier later handling) 2024-03-18 10:21:25 +01:00
dc916f5c56 move.h: revert flags to direct bit mask 2024-03-18 09:15:16 +01:00
748953a767 move-gen: separate pawn capture from en-passant (easier later testing) 2024-03-18 09:13:51 +01:00
9c2e76442d add a struct_group for move_do() irreversible changes 2024-03-17 17:34:21 +01:00
49302c7a60 lowercase move flags macros 2024-03-17 17:33:48 +01:00
db38b507ff add gmon.out 2024-03-17 17:30:51 +01:00
9d40a53aea simplify pos_next_legal() 2024-03-16 12:14:59 +01:00