hui
This commit is contained in:
parent
1b3594fe4a
commit
a25dd5b3f0
@ -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));
|
||||
|
||||
|
||||
@ -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++)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user