--- a/src/chess/bishop.c Tue Jun 03 08:43:17 2025 +0200 +++ b/src/chess/bishop.c Wed Jun 04 23:56:40 2025 +0200 @@ -31,11 +31,11 @@ #include "rules.h" #include <stdlib.h> -_Bool bishop_chkrules(Move* move) { +bool bishop_chkrules(Move* move) { return abs(move->torow-move->fromrow) == abs(move->tofile-move->fromfile); } -_Bool bishop_isblocked(GameState *gamestate, Move *move) { +bool bishop_isblocked(GameState *gamestate, Move *move) { int dy = move->torow > move->fromrow ? 1 : -1; int dx = move->tofile > move->fromfile ? 1 : -1; @@ -46,9 +46,9 @@ x += dx; y += dy; if (gamestate->board[y][x]) { - return 1; + return true; } } - return 0; + return false; }