--- a/src/chess/knight.c Thu Jul 30 18:34:15 2026 +0200 +++ b/src/chess/knight.c Thu Jul 30 19:17:38 2026 +0200 @@ -31,7 +31,7 @@ #include "rules.h" #include <stdlib.h> -bool knight_chkrules(Move *move) { +bool knight_chkrules(const Move *move) { int dx = abs(move->fromfile - move->tofile); int dy = abs(move->fromrow - move->torow);