3 Commits
Author SHA1 Message Date
Angelos f825ee0131 makefile für wordsalad_myversion erstellt 2026-10-18 17:40:04 +02:00
Angelos 683b1cdf7e Spielinitialiserung in main.c 2026-10-18 17:38:47 +02:00
Angelos df82424793 Spielinitialiserung in main.c 2026-10-18 17:19:43 +02:00
2 changed files with 16 additions and 2 deletions

No files matched your search

+10 -2
View File
@@ -35,9 +35,17 @@ int main(int argc, char *argv[])
// Create the word salad by placing words into grid
placedWords = createWordSalad(wordSalad, SALAD_SIZE, words, wordCount);
if(placedWords==wordCount){ //checked if all words were succesfully placed
startGame(wordSalad, SALAD_SIZE, words, wordCount, 1000); // Starting the game
}
else{
printf("Fehler! Es konnten nicht alle Wörter plaziert werden\n"); //Error if some words couldnt be placed
}
// TODO:
// Check if all words were successfully placed
// DONE
// Check if all words were successfully placed3
// Start the game if successful
// error message if some words couldn't be placed
+6
View File
@@ -40,6 +40,12 @@ game.o: $(codefolder)/game.c
graphicalGame.o: $(codefolder)/graphicalGame.c
$(CC) -I$(raylibfolder) -c $(CFLAGS) $(codefolder)/graphicalGame.c
# --------------------------
# mein Spiel bauen
#---------------------------
wordsalad_myversion: main.o
$(CC) -o wordsalad_myversion main.o $(BINARIES)/libwordsalad.a $(BINARIES)/libraylib.a $(LDFLAGS)
# --------------------------
# Unit Tests