src/main.c

changeset 174
2929e86c4817
parent 163
2a6d83f4677e
equal deleted inserted replaced
173:e541b6002933 174:2929e86c4817
844 addstr("Black resigned.\n"); 844 addstr("Black resigned.\n");
845 } else if (gamestate->remis) { 845 } else if (gamestate->remis) {
846 addstr("The game ended remis.\n"); 846 addstr("The game ended remis.\n");
847 } else if (gamestate->stalemate) { 847 } else if (gamestate->stalemate) {
848 addstr("The game ended in a stalemate.\n"); 848 addstr("The game ended in a stalemate.\n");
849 } else if (gamestate->threefold) {
850 addstr("The game was drawn after threefold repetition.\n");
849 } else if (gamestate->checkmate) { 851 } else if (gamestate->checkmate) {
850 printw("%s was checkmated.\n", 852 printw("%s was checkmated.\n",
851 gamestate->movecount % 2 == 0 ? "White" : "Black"); 853 gamestate->movecount % 2 == 0 ? "White" : "Black");
852 } else if (gamestate->ragequit) { 854 } else if (gamestate->ragequit) {
853 printw("Your opponent disconnected.\n"); 855 printw("Your opponent disconnected.\n");

mercurial