add info text in game review for threefold repetition default tip

Fri, 14 Aug 2026 13:52:27 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 14 Aug 2026 13:52:27 +0200
changeset 174
2929e86c4817
parent 173
e541b6002933

add info text in game review for threefold repetition

relates to #843

src/main.c file | annotate | diff | comparison | revisions
--- a/src/main.c	Fri Aug 14 13:40:26 2026 +0200
+++ b/src/main.c	Fri Aug 14 13:52:27 2026 +0200
@@ -846,6 +846,8 @@
                 addstr("The game ended remis.\n");
             } else if (gamestate->stalemate) {
                 addstr("The game ended in a stalemate.\n");
+            } else if (gamestate->threefold) {
+                addstr("The game was drawn after threefold repetition.\n");
             } else if (gamestate->checkmate) {
                 printw("%s was checkmated.\n",
                     gamestate->movecount % 2 == 0 ? "White" : "Black");

mercurial