Vervollständigung weniger Kommentare in game und input

This commit is contained in:
deschnerja104273 committed 2026-10-23 10:44:49 +02:00
1 parent 38864ec511
commit 117d041da2
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -6,6 +6,7 @@
#define MAX_RAND_TRIES_PER_WORD 10
#define EMPTY_CHAR 0
// Funktion die eine zufällige Zahl von 0-range zurückgibt
int randomNumberInRange(unsigned int range);
//TODO: Spiellogik implementieren:
@@ -26,7 +27,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
}
}
// Schleife bis alle Wörter durchlaufen
for (int wordToBePlaced = 0; wordToBePlaced < wordCount; wordToBePlaced++) {
int triesPerWord = 1;
while (triesPerWord <= MAX_RAND_TRIES_PER_WORD) {
+1 -1
View File
@@ -20,7 +20,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
strcpy(words[wordsRead],token);
//Kleinbuchstaben -> Grossbuchstaben
int len = strlen(words[wordsRead]);
for(int i = 0; i < len; i++){ //müsste einen kleinbustaben am ende haben
for(int i = 0; i < len; i++){
if(islower(words[wordsRead][i])){
words[wordsRead][i] = toupper(words[wordsRead][i]);
}