242b501404
cleanup
2024-06-20 05:36:42 +02:00
2fbad1319e
fix EP_ZOBRIST_IDX macro (oops !)
2024-06-17 07:35:14 +02:00
148fef20ea
add info in pos_print, start perft TT testing
2024-06-13 10:28:32 +02:00
5a2cdfca56
perft-test: add SF ucinewgame / isready + check sync
2024-06-08 20:10:17 +02:00
1670b21dfa
fetch-all: add possible local branch creation (still only echo)
2024-05-21 07:52:01 +02:00
2069d6073d
add pos_copy(); pos->king[] set at higher level
2024-05-16 07:16:17 +02:00
86f8184c56
misc.c: init_all()
2024-05-15 18:34:50 +02:00
022daf0a89
typedef key -> #define key_t - can't use typedef, due to <sys/types.h>
2024-05-15 09:42:33 +02:00
7baf66f1b6
add init.c, force BUG_ON in safe_malloc()
2024-05-14 11:39:37 +02:00
c710da4bf9
move_do2: save/restore state inside func; perft: add silent option
2024-04-18 09:54:58 +02:00
b884c1d65c
Makefile: Use -Og instead of -O1 for dev build
2024-04-17 12:09:38 +02:00
8b3202fac0
add CFLAGS -Wshadow and -funroll-loops, fix related common-test.h
2024-04-17 08:21:20 +02:00
a49c712471
Makefile add support for multiple targets w/ first one not parallel
2024-04-14 09:35:53 +02:00
2b72fac45e
comments, removal useless Makefile CFLAGS, etc...
2024-04-14 09:10:31 +02:00
926dfa0765
untabify Makefile, cosmetic change in pos_set_checkers_pinners_blockers()
2024-04-10 17:12:20 +02:00
9b5c2253b1
Makefile: add -ginline-points
2024-04-10 13:02:23 +02:00
05748e19ab
Makefile: build static
2024-04-02 20:38:50 +02:00
ad8a9609ce
misc.c: add a few basic clock functions
2024-03-28 08:33:27 +01:00
09afd98971
fen2pos: no more pos_checkers etc... position.c: pos_check -> pos_ok (bool)
2024-03-27 12:40:16 +01:00
70d6c23c00
position add: pos_set_pinners_blockers()
2024-03-26 17:31:44 +01:00
ce2e0e8459
add forgotten changes in bitboard-switch branch (git is so... difficult)
2024-03-23 17:41:15 +01:00
856e3e52da
add movedo-test
2024-03-21 07:00:20 +01:00
aba0113344
add piece-test
2024-03-15 09:04:44 +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
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
dc6ceb3407
Makefile cleanup
2024-02-29 10:05:44 +01:00
a8e3ec70f8
add square attackers fct
2024-02-29 09:18:19 +01:00
e50d9a73e6
Makefile: cleanup
2024-02-26 19:11:46 +01:00
ccc0dfd2f6
temp commit for machine transfer
2024-02-22 09:37:02 +01:00
568b39e366
add movegen draft, add king square in pos_t, BRQKN move gen (untested)
2024-02-20 21:00:45 +01:00
bc28a900be
update brlib
2024-02-15 10:14:17 +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
1929d4bb1f
bb migration: add util, update fen/fen-test + partial pos + piece
2024-02-07 22:08:24 +01:00
033d95ce26
Makefile: delegate some brlib targets to submodule Makefile
2024-02-05 07:55:37 +01:00
1aa419392e
adapt to brlib 0.3
2024-01-06 19:54:22 +01:00
558be57c58
update Makefile for brlib, bit_for_each new API
2024-01-01 09:56:09 +01:00
ab629fdfa0
adapt Makefile/env.sh to new brlib tree
2023-12-29 17:49:17 +01:00
cb9c81e8f9
edit env.sh
2023-12-29 08:31:30 +01:00
072f3ced9b
Makefile/.gitignore: cleanup (cont.)
2023-12-15 09:17:12 +01:00
e2d32a7300
Makefile: Hure rewriting/simplification (!)
2023-12-13 21:31:01 +01:00
be790056f6
Makefile: fix/simplify binaries generation
2023-12-11 15:02:31 +01:00
f2d4f07069
valgrind: ignore libreadline errors
2023-07-14 08:35:47 +02:00
b1e6461f6f
Add DEBUG_DEBUG_C
2023-07-10 13:10:53 +02:00
7952a34c88
Add pos negamax function
2023-07-07 15:53:26 +02:00
a08b006b98
Add pre-processor and assembly generation
2023-07-06 12:19:00 +02:00
fe5b21aad9
add CPPFLAGS in bin compile
2023-07-01 20:55:05 +02:00
bab3ea95b9
Makefile: cleanup, separate sections, better bin gen, add ccls/valgrind
2023-06-29 09:48:55 +02:00