mirror of
https://github.com/jeremysrand/apple2048.git
synced 2025-04-10 12:39:18 +00:00
Press space to restart after win or loss
This commit is contained in:
parent
5ea3682f70
commit
956f7ecaca
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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user