Compare commits

...
1 Commits
Author SHA1 Message Date
hilpoltsteinbe103465 0bd55e367a Start des Spiels mit eigener main.c 2026-10-19 08:49:38 +02:00
2 changed files with 18 additions and 1 deletions

No files matched your search

+9
View File
@@ -41,6 +41,15 @@ int main(int argc, char *argv[])
// Start the game if successful
// error message if some words couldn't be placed
if (placedWords == wordCount) {
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
}
else {
//Fehlermeldung
fprintf(stderr, "Error: Could not place all words (%u of %u placed).\n", placedWords, wordCount);
exitCode = EXIT_FAILURE;
}
}
else
{
+9 -1
View File
@@ -22,6 +22,14 @@ codefolder = .
wordsalad_initial:
$(CC) -o wordsalad_initial -L. $(BINARIES)/libwordsalad_complete.a $(BINARIES)/libraylib.a $(LDFLAGS)
# --------------------------
# eigenes Spiel bauen
# --------------------------
wordsalad_myversion: main.o
$(CC) -o wordsalad_myversion main.o -L. $(BINARIES)/libwordsalad.a $(BINARIES)/libraylib.a $(LDFLAGS)
# --------------------------
# Normales Spiel bauen
# --------------------------
@@ -56,4 +64,4 @@ ifeq ($(OS),Windows_NT)
del /f *.o *.exe
else
rm -f *.o wordsalad $(TEST_BIN)
endif
endif