From 058f12c699c9183f93f280ad7eb54c8a1b25f523 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Tue, 2 Jun 2026 17:39:09 +0530 Subject: added move flags will try stockfish later dw --- src/engine/moves/vec.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/engine/moves/vec.c') diff --git a/src/engine/moves/vec.c b/src/engine/moves/vec.c index 6192706..6a5f3c6 100644 --- a/src/engine/moves/vec.c +++ b/src/engine/moves/vec.c @@ -2,10 +2,6 @@ #include #include -void position_make_move(position_t* position, move_t* move) { - -} - moves_t moves_init() { return moves_init_wcapacity(16); } @@ -32,7 +28,12 @@ int min(int a, int b) { return a; } -void add_move(moves_t* moves, square_t from, square_t to) { +void _add_move( + moves_t* moves, + square_t from, + square_t to, + struct add_move_params params +) { assert(moves->moves != 0); assert(from != to); @@ -43,9 +44,9 @@ void add_move(moves_t* moves, square_t from, square_t to) { moves->capacity * sizeof(*moves->moves) ); } - moves->moves[moves->length] = (move_t){ + moves->moves[moves->length++] = (move_t) { .from = from, - .to = to + .to = to, + .flags = params.flags, }; - moves->length++; } -- cgit v1.2.3