aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/board.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-23 21:23:03 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-23 21:23:03 +0100
commitaca6f5394e23d3150b8b1455efb1a149786f584f (patch)
tree575e84570f98cf029752641716c1475cb3689253 /FICS/board.c
parent16a18cf1f7ec7157bbb5111e3fa0bffb7270fcad (diff)
Reformatted style1()
Diffstat (limited to 'FICS/board.c')
-rw-r--r--FICS/board.c46
1 files 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);
}
/*