mirror of
https://github.com/jeremysrand/apple2048.git
synced 2024-09-27 13:54:30 +00:00
Display the high score and the tile target
This commit is contained in:
parent
3acf1bda4e
commit
18ae77860f
11
apple2048.c
11
apple2048.c
@ -161,9 +161,16 @@ void printValues(void)
|
|||||||
|
|
||||||
void printScore(void)
|
void printScore(void)
|
||||||
{
|
{
|
||||||
|
tScore highestTile = highestTarget();
|
||||||
|
|
||||||
gotoxy(0,20);
|
gotoxy(0,20);
|
||||||
printf("SCORE: %10ld HI-SCORE: %10ld\nTRY TO GET THE %ld TILE!",
|
printf("SCORE: %10ld HI-SCORE: %10ld\n", currentScore(), highScore());
|
||||||
currentScore(), highScore(), nextTarget());
|
|
||||||
|
if (highestTile == 0) {
|
||||||
|
printf("TRY TO GET THE %ld TILE!\n", nextTarget());
|
||||||
|
} else {
|
||||||
|
printf("GOT %ld! NOW GET %ld!\n", highestTarget, nextTarget());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user