mirror of
https://github.com/jeremysrand/apple2048.git
synced 2025-08-07 12:26:59 +00:00
Press space to restart after win or loss
This commit is contained in:
10
apple2048.c
10
apple2048.c
@@ -442,8 +442,9 @@ void printBoard(void)
|
||||
void gameWon(void)
|
||||
{
|
||||
gotoxy(0, 22);
|
||||
printf("YOU HAVE WON THE GAME! PRESS ANY KEY...\n");
|
||||
cgetc();
|
||||
printf("YOU HAVE WON THE GAME! PRESS SPACE...\n");
|
||||
while (cgetc() != ' ')
|
||||
;
|
||||
clrscr();
|
||||
newGame();
|
||||
}
|
||||
@@ -452,8 +453,9 @@ void gameWon(void)
|
||||
void gameLost(void)
|
||||
{
|
||||
gotoxy(0, 22);
|
||||
printf("SORRY, NO MORE MOVES. PRESS ANY KEY...");
|
||||
cgetc();
|
||||
printf("SORRY, NO MORE MOVES. PRESS SPACE...");
|
||||
while (cgetc() != ' ')
|
||||
;
|
||||
clrscr();
|
||||
newGame();
|
||||
}
|
||||
|
Reference in New Issue
Block a user