generated from freudenreichan/info2Praktikum-Wortsalat
Finished Project
This commit is contained in:
1 parent
4a20144af9
commit
af4a6848fe
4 files changed
+10
-1
No files matched your search
+1
-1
@@ -42,7 +42,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
|
||||
int attempts = 0;
|
||||
|
||||
//MAximum Versuche, um eine passende Position zu finden, um ENdlosshleifen zu vermeiden
|
||||
while(!placed && attempts < 100){
|
||||
while(!placed && attempts < 5000){
|
||||
attempts++;
|
||||
int direction = rand() %2; // 0 = horizontal, 1 = vertical
|
||||
int row = 0;
|
||||
|
||||
Reference in new issue
Block a user