This commit is contained in:
Johannes Kritsch 2025-11-11 14:27:19 +01:00
parent 1b3594fe4a
commit a25dd5b3f0
3 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@
// Creates the word salad by placing words randomly and filling empty spaces
int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount)
{
//Wort für Wort durchgehen
//Wort für Wort dufrchgehen
//int position = 0;
srand(time(NULL));

View File

@ -22,6 +22,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
}
}
/*Alle Buchstaben zu Großbuchstaben umwandeln
*h
for (int i = 0; i < anzahlWord; i++) {
int laenge = strlen(words[i]);
for (int j = 0; j < laenge; j++)

View File

@ -39,7 +39,7 @@ int main(int argc, char *argv[])
if(placedWords == wordCount) {
startGame(wordSalad, SALAD_SIZE, words, wordCount, 800);
}
//showWordSalad(wordSalad, SALAD_SIZE);
//showWordSalad(wordSalad, SALAD_SIZE);ff
else {
// Print error message if file couldn't be opened