mirror of
https://github.com/Soccera1/agg.git
synced 2026-02-04 12:13:40 +01:00
Compare commits
No commits in common. "master" and "v1.2.7" have entirely different histories.
2 changed files with 3 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,4 +1,3 @@
|
||||||
src/agg
|
src/agg
|
||||||
bin
|
bin
|
||||||
obj
|
obj
|
||||||
AGENTS.md
|
|
||||||
|
|
|
||||||
10
src/agg.c
10
src/agg.c
|
|
@ -85,10 +85,6 @@ int main(void) {
|
||||||
int playtime;
|
int playtime;
|
||||||
printf ("\nHow long would you like to play for? Answer in seconds.\n");
|
printf ("\nHow long would you like to play for? Answer in seconds.\n");
|
||||||
scanf ("%d", &playtime);
|
scanf ("%d", &playtime);
|
||||||
if (playtime < 1) {
|
|
||||||
printf ("Error! You must select at least one second.\n");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
int number_length;
|
int number_length;
|
||||||
printf ("Please enter maximum possible number\n");
|
printf ("Please enter maximum possible number\n");
|
||||||
|
|
@ -156,12 +152,12 @@ int main(void) {
|
||||||
if (score >= 1) {
|
if (score >= 1) {
|
||||||
printf ("Great job, %s!\n", username);
|
printf ("Great job, %s!\n", username);
|
||||||
} else {
|
} else {
|
||||||
printf ("Try again!, %s.\n", username);
|
printf ("try again!, %s.\n", username);
|
||||||
}
|
}
|
||||||
if (accuracytype == 1) {
|
if (accuracytype == 1) {
|
||||||
printf ("You got an accuracy of %d%%!\n", (int)accuracy);
|
printf ("you got an accuracy of %d%%!\n", (int)accuracy);
|
||||||
} else {
|
} else {
|
||||||
printf ("You got an accuracy of %g%%!\n", accuracy);
|
printf ("you got an accuracy of %g%%!\n", accuracy);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue