From aca6f5394e23d3150b8b1455efb1a149786f584f Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 23 Dec 2023 21:23:03 +0100 Subject: Reformatted style1() --- FICS/board.c | 46 +++++++++++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/FICS/board.c b/FICS/board.c index e8089ef..69ed76b 100644 --- a/FICS/board.c +++ b/FICS/board.c @@ -348,21 +348,41 @@ PUBLIC int style13(game_state_t *b, move_t *ml) return genstyle(b, ml, wp, bp, wsqr, bsqr, top, mid, start, end, label, blabel); } -/* Standard ICS */ -PUBLIC int style1(game_state_t *b, move_t *ml) +/* + * Standard ICS + */ +PUBLIC int +style1(game_state_t *b, move_t *ml) { - static char *wp[] = {" |", " P |", " N |", " B |", " R |", " Q |", " K |"}; - static char *bp[] = {" |", " *P|", " *N|", " *B|", " *R|", " *Q|", " *K|"}; - static char *wsqr = ""; - static char *bsqr = ""; - static char *top = "\t---------------------------------\n"; - static char *mid = "\t|---+---+---+---+---+---+---+---|\n"; - static char *start = "|"; - static char *end = ""; - static char *label = "\t a b c d e f g h\n"; - static char *blabel = "\t h g f e d c b a\n"; + static char *wp[] = { + " |", + " P |", + " N |", + " B |", + " R |", + " Q |", + " K |" + }; + static char *bp[] = { + " |", + " *P|", + " *N|", + " *B|", + " *R|", + " *Q|", + " *K|" + }; + static char *wsqr = ""; + static char *bsqr = ""; + static char *top = "\t---------------------------------\n"; + static char *mid = "\t|---+---+---+---+---+---+---+---|\n"; + static char *start = "|"; + static char *end = ""; + static char *label = "\t a b c d e f g h\n"; + static char *blabel = "\t h g f e d c b a\n"; - return genstyle(b, ml, wp, bp, wsqr, bsqr, top, mid, start, end, label, blabel); + return genstyle(b, ml, wp, bp, wsqr, bsqr, top, mid, start, end, label, + blabel); } /* -- cgit v1.2.3