Commit Graph

172 Commits

Author SHA1 Message Date
892bdcd004 debug: Add flush option 2023-07-09 15:33:37 +02:00
120a459206 add pos_del function 2023-07-07 15:53:57 +02:00
7952a34c88 Add pos negamax function 2023-07-07 15:53:26 +02:00
531bfa4fb0 remove unused lib includes 2023-07-07 12:28:22 +02:00
12f972e152 move.c: Code cleanup, add promotion in move_do 2023-07-07 12:11:17 +02:00
183e9ef2be Improve move gen, delete ling pos, 3 steps moves generation 2023-07-07 02:21:14 +02:00
6f7a04cc89 Add move_do (dup position), remove &board in move struct 2023-07-06 12:22:26 +02:00
a08b006b98 Add pre-processor and assembly generation 2023-07-06 12:19:00 +02:00
8857dec6cd cleanup 2023-07-02 12:15:22 +02:00
aa7cb11056 add FILE* output 2023-07-02 11:36:04 +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
09ceca44e5 pos: keep possibility to have opponent moves (NULL move) 2023-06-25 16:02:23 +02:00
1e4af66379 moge gen: all moves count as mobility 2023-06-25 16:01:13 +02:00
5bd8f9042a eval: add functions to get eval details 2023-06-25 15:56:36 +02:00
373a73cb52 eval_t is now s32 2023-06-25 15:55:12 +02:00
9c6830bc56 add inittial pos init function 2023-06-25 15:54:46 +02:00
9b25a6ba8c Makefile deps improved, improve Emacs dir locals. 2023-06-24 12:14:02 +02:00
1154f141c9 start bitboard integration 2023-06-22 16:08:57 +02:00
cb94ca52b9 rename to brchess 2023-06-22 16:07:16 +02:00
6f3570ef40 save changes made sparsely the last 2 years (segfault everywhere) 2023-06-22 16:04:25 +02:00
d9b42e2b43 Fix invalid fonction definition with unnamed param 2023-06-22 14:54:54 +02:00
8036b289a6 move typedefs alltogether 2023-06-22 14:54:31 +02:00
e1570fa34a latest brlib version 2023-06-21 14:36:45 +02:00
aaa9cb8690 switch to s8...s64 and u8...u64 integer notation 2021-11-20 19:22:57 +01:00
05a64ec742 simplify 0x88 macros / remove redundant chessdefs.h equivalent ones 2021-11-20 16:15:45 +01:00
6b2c1702f6 revert to color at LSB, to avoid easy mistakes
close #3
2021-11-19 12:15:53 +01:00
b582798751 nes fen cases 2021-11-19 11:43:01 +01:00
097dae84d6 Refuckulate castle_Q: forgot a pointer when copying from castle_K 2021-11-16 21:47:40 +01:00
da0ee468e0 add prpieces(): print position White & Black pieces list 2021-11-16 21:46:22 +01:00
bf520b6c71 fuckulated movegenerator into a good coregenerator
Need to test all edge cases for new position after move (castle/en passant/promotion).
En passant crashes, likely easy fix.
castle/promotion new position untested.

Yoda: A feature branch absolutely necessary was.
Me: With that Truth I agree.
2021-11-15 19:36:19 +01:00
96c342b3d4 add move generation + new node print functions 2021-11-15 19:33:37 +01:00
c90cc39383 new fen cases 2021-11-15 19:33:14 +01:00
e7d69d7ce4 TODO list moved to gitea issues 2021-11-15 11:44:51 +01:00
a28cd5c492 pod_dup(): duplicate also pieces list 2021-11-15 11:23:37 +01:00
f0e1836f2f add memstats / clear lists when new fen position 2021-11-14 16:03:36 +01:00
6dac938c76 bodichess.c: clean dead code. 2021-11-14 11:58:16 +01:00
5bf5d6bae9 bodichess main loop (move gen/eval/fen init/print pos/print moves) 2021-11-14 11:35:03 +01:00
451afea6b5 refactor position: now contains board (not board *) 2021-11-12 20:22:20 +01:00
bd7d9f8551 add memory pool for positions 2021-11-12 18:33:39 +01:00
4442901b58 fix forgotten break in sq88 -> bitboard move_gen() 2021-11-12 12:33:39 +01:00
4365838276 simplify bitboard macros & move_gen use bitboard for occupied square 2021-11-12 12:28:44 +01:00
bd88da013c pos: added mobility. move_gen: hangle castling 2021-11-12 11:00:59 +01:00
37271bdd77 eval: basic mobility 2021-11-12 11:00:11 +01:00
6832cdf32a debug.c: fix indent level 2021-11-12 10:59:34 +01:00
28164beb37 board.h: add square defs for both 0x88 & bitboards 2021-11-12 10:57:47 +01:00
7c98f0d4c5 piece_t change, pack piece_details, conversion piece: mask<=>number 2021-11-10 15:54:13 +01:00
bc07a949b0 change piece_t mask, pack piece_details 2021-11-10 15:51:30 +01:00
f79524837a update gitignore 2021-11-09 21:03:29 +01:00
5623dc78a5 dummy eval func (pieces + square control), bit ops, shorter int types 2021-11-09 20:57:18 +01:00