27.10 änderung nach test

This commit is contained in:
Giorgi Kesidis
2025-10-27 19:45:25 +01:00
parent 12464e4152
commit a1930fa74e
8 changed files with 3 additions and 3 deletions
+3 -3
View File
@@ -35,7 +35,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
int x = rand() % searchFieldLen;
int y = rand() % searchFieldLen;
if (horizontal = 1)
if (horizontal = !NULL)
{
if (x + wordlength > searchFieldLen) // word does not fit
{
@@ -53,7 +53,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
}
}
if (fits = 1)
if (fits = !NULL)
{
for (int i = 0; i < wordlength; i++)
{
@@ -81,7 +81,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
break;
}
}
if (fits = 1)
if (fits = !NULL)
{
for (int i = 0; i < wordlength; i++)
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.