Commit Graph

20 Commits

Author SHA1 Message Date
5401e83db8 Memory allocation: moved to alloc.[ch] 2024-07-10 07:49:44 +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
da489bad65 update include syntax 2024-06-25 13:07:33 +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
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
d81dca6e23 add sq_line array, bb_sq_aligned3, renamed sq_manh to sq_taxi 2024-03-11 16:04:45 +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
8f0840fc2f add functions documentation - should be done earlier !! 2024-02-29 09:31:00 +01:00
ca4e274957 add in-between masks (with/without dest square. TODO: keep only one !) 2024-02-26 19:14:20 +01:00
568b39e366 add movegen draft, add king square in pos_t, BRQKN move gen (untested) 2024-02-20 21:00:45 +01:00
403e625cbe add hyperbola-quintessence.[ch]}, rank move gen, + file/rook/queen 2024-02-15 10:15:13 +01:00
3e828ed29b add bitboard_print_multi(), file/rank/diag/antidiag masks generation 2024-02-12 21:34:42 +01:00
d5906b1fb9 start bitboard init (see commit details)
- bitboard.c: make attacks for knight/king
- square macros (BB, BBfile, BBrank) renamed sq_make, sq_file,
  sq_rank, moved to board.h (and become temporarily inline funcs)
- different macros/defs moved to "correct place" (bitboard/board/piece):
  board.[ch]: everything related to board/square
  bitboard.[ch]: everything related to bitboards
  piece.[ch]: everything related to pieces
2024-02-11 20:47:09 +01:00
4f25c1416d re-organize defines / few bug fix 2024-02-10 09:16:59 +01:00
26c3b04d17 Set back bitboard.c file 2024-02-05 08:38:08 +01:00
15ad675838 Copy bitboard.c into temp-migration-bitboard/bitboard.c 2024-02-05 08:38:08 +01:00
e49e9b8f9d Start bitboard migration... Long long cries coming 2024-02-04 19:16:10 +01:00