diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-23 21:19:22 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-23 21:19:22 +0100 |
commit | 16a18cf1f7ec7157bbb5111e3fa0bffb7270fcad (patch) | |
tree | b48a5cbbeedd8b40d8dd41476c74b021433c6951 /FICS/board.c | |
parent | da17f0eb766880cf076222094cfbc8e1dd90876f (diff) |
Reformatted style2()
Diffstat (limited to 'FICS/board.c')
-rw-r--r-- | FICS/board.c | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/FICS/board.c b/FICS/board.c index d72c959..e8089ef 100644 --- a/FICS/board.c +++ b/FICS/board.c @@ -365,21 +365,41 @@ PUBLIC int style1(game_state_t *b, move_t *ml) return genstyle(b, ml, wp, bp, wsqr, bsqr, top, mid, start, end, label, blabel); } -/* USA-Today Sports Center-style board */ -PUBLIC int style2(game_state_t *b, move_t *ml) +/* + * USA-Today Sports Center-style board + */ +PUBLIC int +style2(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 = ""; - static char *mid = ""; - static char *start = ""; - static char *end = ""; - static char *label = "\ta b c d e f g h\n"; - static char *blabel = "\th 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 = ""; + static char *mid = ""; + static char *start = ""; + static char *end = ""; + static char *label = "\ta b c d e f g h\n"; + static char *blabel = "\th 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); } /* |