Commit Graph

24 Commits

Author SHA1 Message Date
48b5420830 Add check array in position structure 2023-07-25 06:54:33 +02:00
3de87daa5a bug fix in pos_dup() 2023-07-12 21:30:24 +02:00
ed9b9cc646 add nodes_count and moves_{generated,counted} in pos struct 2023-07-11 22:22:33 +02:00
65f1bef987 cleanup 2023-07-09 16:22:42 +02:00
0df87ff41c Add bestmove in pos struct, add pos_check() 2023-07-09 15:36:14 +02:00
120a459206 add pos_del function 2023-07-07 15:53:57 +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
09ceca44e5 pos: keep possibility to have opponent moves (NULL move) 2023-06-25 16:02:23 +02:00
1154f141c9 start bitboard integration 2023-06-22 16:08:57 +02:00
05a64ec742 simplify 0x88 macros / remove redundant chessdefs.h equivalent ones 2021-11-20 16:15:45 +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
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
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
bd88da013c pos: added mobility. move_gen: hangle castling 2021-11-12 11:00:59 +01:00
7c98f0d4c5 piece_t change, pack piece_details, conversion piece: mask<=>number 2021-11-10 15:54:13 +01:00
d38e2f4543 Occupancy & square control bitboards + continue printf->logX 2021-11-08 08:38:38 +01:00
16c0c06095 remove piece2char/piece2string (global var instead) 2021-10-31 13:44:08 +01:00
2f701c4bd5 pseudo-moves for pieces (not pawns nor special moves) 2021-10-31 12:16:11 +01:00
4bba067cd6 Add player's pieces list management + change board def. 2021-10-30 22:03:17 +02:00
7bdc428485 add license information & rename typedefs 2021-10-29 09:00:10 +02:00
264459dc0f initial files 2021-10-27 16:09:56 +02:00