Compare commits

...

2 Commits

Author SHA1 Message Date
ff8384e9ee changes to game.c 2025-11-10 14:54:06 +01:00
cbf834ab76 changes to game.c 2025-11-10 14:53:23 +01:00
4 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
salad[i][j] = '.'; //Füllen des gesamten Arrays mit Nullen salad[i][j] = '.'; //Füllen des gesamten Arrays mit Nullen
} }
} }
for (int i=0; i < wordCount; i++) { for (int i=0; i < wordCount; i++)
{
wordLength = strlen(words[i]); wordLength = strlen(words[i]);
@ -82,7 +83,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
{ {
for (int j = 0; j < wordLength; j++) for (int j = 0; j < wordLength; j++)
{ {
salad[row+j][collumn] = words[i][j]; salad[reihe+j][spalte] = words[i][j];
} }
added=1; added=1;
addedWords++; addedWords++;

Binary file not shown.

BIN
Start_Windows/main.o Normal file

Binary file not shown.

Binary file not shown.