Commit Graph

6 Commits

Author SHA1 Message Date
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
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
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