Finished Project

This commit is contained in:
tiewataffoch99039 committed 2026-10-20 15:51:14 +02:00
1 parent 4a20144af9
commit af4a6848fe
4 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -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;