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.6" have entirely different histories.
4 changed files with 6 additions and 13 deletions
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
|||
run: sudo apt-get update && sudo apt-get install -y build-essential
|
||||
|
||||
- name: Build project for Linux
|
||||
run: LDFLAGS="-static" make all
|
||||
run: make all
|
||||
working-directory: ${{ github.workspace }}
|
||||
|
||||
- name: Upload Linux artifact
|
||||
|
|
|
|||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,4 +1,3 @@
|
|||
src/agg
|
||||
bin
|
||||
obj
|
||||
AGENTS.md
|
||||
|
|
|
|||
6
Makefile
6
Makefile
|
|
@ -1,8 +1,6 @@
|
|||
# Compiler and flags
|
||||
CC = gcc
|
||||
EXTRA_CFLAGS ?=
|
||||
CFLAGS ?= -Wall -Wextra -std=c99 -pedantic -O3 -flto $(EXTRA_CFLAGS)
|
||||
LDFLAGS ?=
|
||||
CFLAGS = -Wall -Wextra -std=c99 -pedantic -O3 -flto
|
||||
DEBUG_FLAGS = -g -DDEBUG
|
||||
|
||||
# Directories
|
||||
|
|
@ -31,7 +29,7 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.c | $(OBJDIR)
|
|||
|
||||
# Link executable
|
||||
$(TARGET): $(OBJECTS) | $(BINDIR)
|
||||
$(CC) $(LDFLAGS) $(OBJECTS) -o $@
|
||||
$(CC) $(OBJECTS) -o $@
|
||||
|
||||
# Debug build
|
||||
debug: CFLAGS += $(DEBUG_FLAGS)
|
||||
|
|
|
|||
10
src/agg.c
10
src/agg.c
|
|
@ -85,10 +85,6 @@ 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");
|
||||
|
|
@ -156,12 +152,12 @@ int main(void) {
|
|||
if (score >= 1) {
|
||||
printf ("Great job, %s!\n", username);
|
||||
} else {
|
||||
printf ("Try again!, %s.\n", username);
|
||||
printf ("try again!, %s.\n", username);
|
||||
}
|
||||
if (accuracytype == 1) {
|
||||
printf ("You got an accuracy of %d%%!\n", (int)accuracy);
|
||||
printf ("you got an accuracy of %d%%!\n", (int)accuracy);
|
||||
} else {
|
||||
printf ("You got an accuracy of %g%%!\n", accuracy);
|
||||
printf ("you got an accuracy of %g%%!\n", accuracy);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue