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

+9
View File
@@ -0,0 +1,9 @@
# Wortsalat - Praktikum Informatik 2
Ein klassisches Wortsuchspiel, bei dem Wörter aus einer Textdatei zufällig horizontal oder vertikal in einem Gitter platziert werden. Der Spieler muss diese Wörter im Spielfeld finden.
## Bedienung & Kompilierung
1. **Eigenes Target bauen:**
make wordsalad_myversion
+1 -1
View File
@@ -42,7 +42,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
int attempts = 0; int attempts = 0;
//MAximum Versuche, um eine passende Position zu finden, um ENdlosshleifen zu vermeiden //MAximum Versuche, um eine passende Position zu finden, um ENdlosshleifen zu vermeiden
while(!placed && attempts < 100){ while(!placed && attempts < 5000){
attempts++; attempts++;
int direction = rand() %2; // 0 = horizontal, 1 = vertical int direction = rand() %2; // 0 = horizontal, 1 = vertical
int row = 0; int row = 0;
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.