Author SHA1 Message Date
bernardjo104126 afdd93f035 input Versuch 2 2026-10-26 15:15:59 +01:00
bernardjo104126 42a1ab8168 Input Versuch1 2026-10-26 15:07:17 +01:00
herdingto103621 71071cbbc8 Zweiter Versuch Makefile 2026-10-22 15:30:44 +02:00
bernardjo104126 3c240b1bb2 test 2026-10-22 15:28:50 +02:00
herdingto103621 4a1488da75 Erster Versuch Makefile anzupassen 2026-10-22 15:24:41 +02:00
3 changed files with 13 additions and 0 deletions

No files matched your search

+2
View File
@@ -11,6 +11,8 @@
* restliche Felder mit zufälligen Buchstaben füllen */
// Creates the word salad by placing words randomly and filling empty spaces
//test jonathan
int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount)
{
+8
View File
@@ -9,4 +9,12 @@
int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
{
unsigned int wordCount = 0;
while(fgets(words[wordCount],MAX_WORD_LEN,file) != NULL && wordCount+1 < maxWordCount){
wordCount++;
}
return wordCount;
}
+3
View File
@@ -25,6 +25,9 @@ wordsalad_initial:
# --------------------------
# Normales Spiel bauen
# --------------------------
wordsalad_myversion:
$(CC) -o wordsalad_initial -L. $(BINARIES)/main.c $(BINARIES)/libraylib.a $(LDFLAGS)
wordsalad: main.o input.o game.o graphicalGame.o $(BINARIES)/libraylib.a
$(CC) $(CFLAGS) -o wordsalad main.o input.o game.o graphicalGame.o $(BINARIES)/libraylib.a $(LDFLAGS)