From 0e415250e6c475750dc955e93f06bd596ae92c3c Mon Sep 17 00:00:00 2001 From: Odweta Date: Wed, 18 Feb 2026 15:14:01 +0100 Subject: [PATCH] it's getting over the top of my head :( --- src/chess.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/chess.c b/src/chess.c index 5568dc4..2d53520 100644 --- a/src/chess.c +++ b/src/chess.c @@ -137,10 +137,11 @@ bool is_none(board_t board, pos_t pos) { return board[pos.y][pos.x] == NONE; } -// the move can be: -// 1. legal x illegal -// 2. the 'to' pos could be occupied x non-occupied -// 2a. it could be capturable x non-capturable +/** the move can be: + * 1. legal x illegal + * 2. the 'to' pos could be occupied x non-occupied + * 2a. it could be capturable x non-capturable +*/ bool validate_move(board_t board, move_t move) { bool none = is_none(board, move.to); bool move_legal = is_move_legal(move); @@ -165,7 +166,7 @@ bool perform_move(board_t *board, player_e player, move_t move) { } end_condition_e check_edge_cases(board_t board) { - + } void announce_results(end_condition_e end_condition, player_e player) {