From 90bff8fb828c99d8b1ef00fe783dd50887c81f70 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 1 Jun 2022 12:56:59 +0800 Subject: Game over indication --- sirtet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sirtet.c') diff --git a/sirtet.c b/sirtet.c index 1d53ac2..c9221ce 100644 --- a/sirtet.c +++ b/sirtet.c @@ -226,8 +226,10 @@ void sirtet() { } if (!has_placeable) { // game over - printw("Game over\n"); + mvprintw(3, 2 * W + 8, "Game over"); + mvprintw(4, 2 * W + 8, "Press any key to exit"); refresh(); + while (getch() == 0); over = true; } } -- cgit v1.2.3