summaryrefslogtreecommitdiff
path: root/sirtet.c
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-06-01 12:56:59 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-06-01 12:56:59 +0800
commit90bff8fb828c99d8b1ef00fe783dd50887c81f70 (patch)
treeb556188b89e107da9d342866b53ea0861f480564 /sirtet.c
parent8c2ba1b7f90ec1dce410d9e825a082df137a4a02 (diff)
Game over indication
Diffstat (limited to 'sirtet.c')
-rw-r--r--sirtet.c4
1 files changed, 3 insertions, 1 deletions
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;
}
}