Commit Graph

16 Commits

Author SHA1 Message Date
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
431baa43d4 cleanup 2024-05-30 10:47:02 +02:00
ec64e2e44d replace pawn_shift_xxx with bb_pawns_attacks 2024-05-28 09:40:20 +02:00
32ade1777f ren macros mask->BIT/C64->U64, del pinners/checkers/blockers in state_s 2024-05-06 07:41:27 +02:00
a13bdb04f1 sq_is_attacked: N before P 2024-04-17 12:10:45 +02:00
2b72fac45e comments, removal useless Makefile CFLAGS, etc... 2024-04-14 09:10:31 +02:00
0330696f87 pseudo_is_legal(): use sq_is_attacked() instead of sq_attackers() 2024-04-13 06:52:27 +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
7637bdad10 attack.c: sq_is_attacked() and is_in_check() 2024-03-26 17:34:11 +01:00
4eb620a873 add occ param in sq_attackers() 2024-03-15 09:14:10 +01:00
cc3754ae00 add position blockers 2024-03-12 10:44:25 +01:00
87e7695873 new pos/bb funcs, legal(), better castling gen, etc. [see commit details]
- new sq_pinners
- new pseudo_is_legal() (unfinished)
- improve castling pseudo move gen

- more position and lower level bitboard helper funcs:
  - pos_{_occ,between_occ,between_count,pinners}
  - bb_{rank,file,rel_rank,_sq_aligned,_sq_between)
- rename some bitboard globals
- replace bb ranks/files enums with defines (issue with clang)
  -> Need to find a way to use enum safely
- tests:
  - add common-test.h
  - new attack-test.c
2024-03-10 10:58:14 +01:00
b351d198b8 sq_attackers() + others (see dedails). Ready for move do/undo ?
- add many "const" in func parameters
- attack.c: sq_attackers()
- move print_board_raw from position.c to to board.c
- move some fen_check() tests to pos_check()
- add REL_RANK() macro. TODO: add one more for bitboards
- fen.c: more tests for FEN validity
- position.c: add pos_checkers() and pos_check()
- tests: add common-test.h (for shared FEN positions access)
2024-03-04 21:34:29 +01:00
a8e3ec70f8 add square attackers fct 2024-02-29 09:18:19 +01:00