main TODO und makefile

This commit is contained in:
Hannes Dienstbier committed 2026-10-19 08:50:32 +02:00
1 parent 46ba65eaa5
commit 3172ff8143
2 files changed
+12

No files matched your search

+9
View File
@@ -40,6 +40,15 @@ int main(int argc, char *argv[])
// Check if all words were successfully placed
// Start the game if successful
// error message if some words couldn't be placed
if (wordCount == placedWords)
{
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
}
else
{
fprintf(stderr, "Could not start, because not all words placed (%u of %u placed).\n", placedWords, wordCount);
exitCode = EXIT_FAILURE;
}
}
else
+3
View File
@@ -40,6 +40,9 @@ game.o: $(codefolder)/game.c
graphicalGame.o: $(codefolder)/graphicalGame.c
$(CC) -I$(raylibfolder) -c $(CFLAGS) $(codefolder)/graphicalGame.c
wordsalad_myversion: main.o
$(CC) -o wordsalad_myversion -L. $(BINARIES)/libwordsalad_complete.a $(BINARIES)/libraylib.a $(LDFLAGS)
# --------------------------
# Unit Tests