--- a/src/chess/knight.c Tue Aug 25 18:59:18 2026 +0200 +++ b/src/chess/knight.c Tue Aug 25 19:42:15 2026 +0200 @@ -39,7 +39,7 @@ } size_t knight_moves(const GameState *gamestate, - Color c, Rank r, File f, Move *moves) { + Color c, File f, Rank r, Move *moves) { size_t count = 0; const int offsets[8][2] = { @@ -64,7 +64,7 @@ moves[count].fromfile = f; moves[count].torank = rank; moves[count].tofile = file; - moves[count].capture = piece_at(gamestate, rank, file) != 0; + moves[count].capture = piece_at(gamestate, file, rank) != 0; count++; } }