9
0
Fork 0

2048: Reset score on startup

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Alexander Shiyan 2014-06-05 17:46:43 +04:00 committed by Sascha Hauer
parent 0d6392de4a
commit 905d36b841
1 changed files with 2 additions and 0 deletions

View File

@ -337,6 +337,8 @@ static int do_2048(int argc, char *argv[])
return test();
}
score = 0;
printf("\033[?25l\033[2J\033[H");
memset(board,0,sizeof(board));