summary refs log tree commit diff homepage
path: root/snake.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--snake.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/snake.c b/snake.c
index 62f660f..1437deb 100644
--- a/snake.c
+++ b/snake.c
@@ -205,7 +205,12 @@ uint playSnake(void) {
 	draw();
 	while (ERR != getch());
 	nodelay(stdscr, false);
-	getch();
+	int ch;
+	do {
+		ch = getch();
+	} while (
+		ch == KEY_LEFT || ch == KEY_DOWN || ch == KEY_UP || ch == KEY_RIGHT
+	);
 	return score;
 }
 
insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe Apparently sometimes it didn't like receiving its own internal storage to parse again. Understandable. 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe Wow. One of the best I've read. 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe Broke out LDLIBS for each bin, and made everything more uniform. 2020-01-28Change scout sensitivity to 1.4June McEnroe idk it seems to work. 2020-01-28Import shows.txtJune McEnroe