27.10 änderung nach test
This commit is contained in:
parent
12464e4152
commit
a1930fa74e
@ -35,7 +35,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
|
|||||||
int x = rand() % searchFieldLen;
|
int x = rand() % searchFieldLen;
|
||||||
int y = rand() % searchFieldLen;
|
int y = rand() % searchFieldLen;
|
||||||
|
|
||||||
if (horizontal = 1)
|
if (horizontal = !NULL)
|
||||||
{
|
{
|
||||||
if (x + wordlength > searchFieldLen) // word does not fit
|
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++)
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (fits = 1)
|
if (fits = !NULL)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < wordlength; i++)
|
for (int i = 0; i < wordlength; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
BIN
Start_Windows/game.o
Normal file
BIN
Start_Windows/game.o
Normal file
Binary file not shown.
BIN
Start_Windows/graphicalGame.o
Normal file
BIN
Start_Windows/graphicalGame.o
Normal file
Binary file not shown.
BIN
Start_Windows/input.o
Normal file
BIN
Start_Windows/input.o
Normal file
Binary file not shown.
BIN
Start_Windows/main.o
Normal file
BIN
Start_Windows/main.o
Normal file
Binary file not shown.
BIN
Start_Windows/runTests.exe
Normal file
BIN
Start_Windows/runTests.exe
Normal file
Binary file not shown.
BIN
Start_Windows/wordsalad.exe
Normal file
BIN
Start_Windows/wordsalad.exe
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user