aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-05 18:03:43 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-05 18:03:43 +0200
commitda2f83eb30a2587abee372940458525102245369 (patch)
tree844abfce567a8beeb418ba48f5ccf6c4785b606d /FICS
parent96225bdb2cf993dcfe6423f3c606c7145cb28644 (diff)
Reformatted legal_queen_move()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/movecheck.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/FICS/movecheck.c b/FICS/movecheck.c
index 6dc9e19..d9d1332 100644
--- a/FICS/movecheck.c
+++ b/FICS/movecheck.c
@@ -267,15 +267,13 @@ PRIVATE int legal_rook_move(game_state_t * gs, int ff, int fr, int tf, int tr)
}
}
-PRIVATE int legal_queen_move(game_state_t * gs, int ff, int fr, int tf, int tr)
+PRIVATE int
+legal_queen_move(game_state_t *gs, int ff, int fr, int tf, int tr)
{
- return legal_rook_move(gs, ff, fr, tf, tr) || legal_bishop_move(gs, ff, fr, tf, tr);
+ return (legal_rook_move(gs, ff, fr, tf, tr) ||
+ legal_bishop_move(gs, ff, fr, tf, tr));
}
-/* Ckeck, if square (kf,kr) is attacked by enemy piece.
- * Used in castling from/through check testing.
- */
-
/*
* New one from soso
*/