Commit Graph

12 Commits

Author SHA1 Message Date
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
a499893f32 add board_print, board_print_mask 2024-03-02 07:10:23 +01:00
7859228f89 movegen-test: add fen test array 2024-02-29 09:19:24 +01:00
f1a081a7b6 add pawn movegen (untested) 2024-02-26 19:15:42 +01:00
fa5c9bb8ab bitboard8_sprint -> bitboard_rank_sprint (temp, need BB+rank as input) 2024-02-22 09:29:10 +01:00
9c02a02c1e fen: add fen_test() 2024-02-22 09:11:25 +01:00
403e625cbe add hyperbola-quintessence.[ch]}, rank move gen, + file/rook/queen 2024-02-15 10:15:13 +01:00
4f25c1416d re-organize defines / few bug fix 2024-02-10 09:16:59 +01:00
d6f2497bb0 rename typedefs - temp commit for computer change 2024-02-08 09:50:14 +01:00
1929d4bb1f bb migration: add util, update fen/fen-test + partial pos + piece 2024-02-07 22:08:24 +01:00
6acacb0314 Keep bitboard.c 2024-02-05 08:38:08 +01:00