ref: 4d8547ddd37c51e447c2aa947b82157360be36ab
parent: a7454474ffc67f1590b6737585cb70d35cc4a9ed
author: zamfofex <zamfofex@twdb.moe>
date: Sat Oct 26 14:28:35 EDT 2024
adjust code style slightly
--- a/chess.c
+++ b/chess.c
@@ -189,8 +189,7 @@
int moonfish_moves(struct moonfish_chess *chess, struct moonfish_move *moves, unsigned char from)
{ static int steps[] = {0, 1, 8, 8, 8, 1};- static int deltas[][5] =
- {+ static int deltas[][5] = { {0}, {21, 19, 12, 8, 0}, {11, 9, 0},--- a/tools/analyse.c
+++ b/tools/analyse.c
@@ -702,8 +702,7 @@
{static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
static char *format = "<UCI-options>... [--] <cmd> <args>...";
- static struct moonfish_arg args[] =
- {+ static struct moonfish_arg args[] = { {"F", "fen", "<FEN>", NULL, "the position to analyse"}, {"G", "pgn", "<file-name>", NULL, "PGN game to load"}, {NULL, NULL, NULL, NULL, NULL},--- a/tools/chat.c
+++ b/tools/chat.c
@@ -323,8 +323,7 @@
int main(int argc, char **argv)
{static char *format = "<UCI-options> [--] <cmd> <args>...";
- static struct moonfish_arg args[] =
- {+ static struct moonfish_arg args[] = { {"N", "host", "<name>", "irc.libera.chat", "network host name (default: 'irc.libera.chat')"}, {"P", "port", "<port>", "6697", "network port (default: '6697')"}, {"M", "nick", "<nickname>", "moonfish", "the bot's nickname (default: 'moonfish')"},--- a/tools/perft.c
+++ b/tools/perft.c
@@ -34,8 +34,7 @@
int main(int argc, char **argv)
{static char *format = "<depth>";
- static struct moonfish_arg args[] =
- {+ static struct moonfish_arg args[] = { {"F", "fen", "<FEN>", NULL, "starting position for the game"}, {NULL, NULL, NULL, NULL, NULL},};
--
⑨