Finished
This commit is contained in:
parent
253248922c
commit
03639169d6
@ -51,7 +51,8 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
|
|||||||
startPositionVer = rand() % searchFieldLen;
|
startPositionVer = rand() % searchFieldLen;
|
||||||
|
|
||||||
for (int j = 0; j < laenge; j++) {
|
for (int j = 0; j < laenge; j++) {
|
||||||
if (salad[startPositionVer][startPositionHor + j] == EMPTY_CHAR) {
|
if (salad[startPositionVer][startPositionHor + j] == EMPTY_CHAR ||
|
||||||
|
salad[startPositionVer][startPositionHor + j] == words[i][j]) {
|
||||||
noFreigabe = 0;
|
noFreigabe = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -82,7 +83,8 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
|
|||||||
startPositionHor = rand() % searchFieldLen;
|
startPositionHor = rand() % searchFieldLen;
|
||||||
|
|
||||||
for (int j = 0; j < laenge; j++) {
|
for (int j = 0; j < laenge; j++) {
|
||||||
if (salad[startPositionVer + j][startPositionHor] == EMPTY_CHAR) {
|
if (salad[startPositionVer + j][startPositionHor] == EMPTY_CHAR ||
|
||||||
|
salad[startPositionVer + j][startPositionHor] == words[i][j]) {
|
||||||
noFreigabe = 0;
|
noFreigabe = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user