From efe6e98b486bc27e4a622afb841e8b702064d870 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Sun, 10 Mar 2019 19:02:35 +1030 Subject: initialise score --- snake.c | 1 + 1 file changed, 1 insertion(+) (limited to 'snake.c') diff --git a/snake.c b/snake.c index 0060f64..92cc6dd 100644 --- a/snake.c +++ b/snake.c @@ -78,6 +78,7 @@ int main(void) getmaxyx(stdscr, h, w); /* setup snake */ head *snake; + snake->score = 0; snake->x = 0; snake->y = 5; snake->oldx = snake->x; -- cgit v1.2.3