Compare commits

...

2 commits

Author SHA1 Message Date
lily
826cda95f0
Update .gitignore
Some checks failed
Create Release on Push / build_and_release_linux (push) Has been cancelled
Create Release on Push / build_and_upload_windows (push) Has been cancelled
2026-01-30 05:06:47 +11:00
lily
e756cede3a
Fix input validation for time
Some checks failed
Create Release on Push / build_and_release_linux (push) Has been cancelled
Create Release on Push / build_and_upload_windows (push) Has been cancelled
2026-01-28 19:50:55 +11:00
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
src/agg
bin
obj
AGENTS.md

View file

@ -85,6 +85,10 @@ int main(void) {
int playtime;
printf ("\nHow long would you like to play for? Answer in seconds.\n");
scanf ("%d", &playtime);
if (playtime < 1) {
printf ("Error! You must select at least one second.\n");
exit(1);
}
int number_length;
printf ("Please enter maximum possible number\n");