| 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"); |