Commit Graph

80 Commits

Author SHA1 Message Date
7ae6604e10 Makefile: add dependency on brlib file 2024-08-08 08:43:14 +02:00
f7a6e582ed movegen: add pos_gen_legal() to simplify code 2024-08-05 08:40:03 +02:00
01af1f5c49 separate perft (from search.c) 2024-07-29 09:56:27 +02:00
a6a21626c7 uci: complete option/setoption
- eval-defs.c: add parameter type in ev_params
- util.c:
  - new str_eq_case()
  - new str_skip_word
  - str_token(): split string before token
2024-07-28 15:14:07 +02:00
4733a1d65f add structure for eval parameters 2024-07-25 09:27:30 +02:00
99658316fb move all uci to uci.c, eval variables to eval-defs.c 2024-07-22 21:07:46 +02:00
98c54553d0 Combo changes
- move eval_material to eval-simple.c
- move phase_t to eval.h
- init.c: add eval init
- piece.h: add  piece_midval/piece_endval
- fen.c: add phase calculation
- eval-simple: fix calc_phase
2024-07-22 18:56:54 +02:00
14a2cae072 eval-simple.c: game phases, multiple PST 2024-07-21 18:10:33 +02:00
ca76b28b00 Makefile: simplify flags/build, adapt Emacs .dirs-local.el 2024-07-15 08:13:39 +02:00
3100504fa2 Makefile: add 'build=' option 2024-07-10 07:47:02 +02:00
470109768f finalize hyperbola funcs/files rename: Makefile, wrong calls, etc... 2024-07-06 20:44:25 +02:00
4e6885f26f makefile: default build: 'dev' 2024-06-29 11:31:48 +02:00
b8f0f6a120 remove MOVE_NO_MOVE (use only MOVE_NONE) 2024-06-28 11:43:52 +02:00
c5a1936e3b UCI moves && games states list 2024-06-27 10:11:24 +02:00
a7311a546f add perf target 2024-06-23 19:16:05 +02:00
0a0c3227b8 Makefile: add release & dev targets 2024-06-20 09:04:28 +02:00
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