Sat, 28 Mar 2026 14:04:21 +0100
show whose turn it is in single mode game
| src/game.c | file | annotate | diff | comparison | revisions |
--- a/src/game.c Sat Mar 28 14:01:14 2026 +0100 +++ b/src/game.c Sat Mar 28 14:04:21 2026 +0100 @@ -214,22 +214,21 @@ flushinp(); while (1) { + const char *curcolorstr = curcolor == WHITE ? "White" : "Black"; if (timecontrol(gamestate, gameinfo)) { return 1; } - move(inputy, 0); printw( "Use chess notation to enter your move.\n" "Or use a command: remis, resign, savepgn\n\n" - "Type your move: "); + "%s to move: ", curcolorstr); clrtoeol(); if (asyncgetnstr(movestr, &bufpos, MOVESTR_BUFLEN)) { if (strncmp(movestr, "resign", MOVESTR_BUFLEN) == 0) { gamestate->resign = 1; - printw("%s resigned!", - curcolor==WHITE?"White":"Black"); + printw("%s resigned!", curcolorstr); clrtobot(); refresh(); return 1;