This commit is contained in:
zidanmo99094 committed 2026-10-30 15:18:54 +01:00
1 parent b4ee9ae4e4
commit 2f0857c711
1 file changed
+16 -4
+16 -4
View File
@@ -3,9 +3,21 @@
#include "input.h" #include "input.h"
// Falls MAX_SEARCH_FIELD_LEN noch nicht definiert ist:
#ifndef MAX_SEARCH_FIELD_LEN
#define MAX_SEARCH_FIELD_LEN 100 #define MAX_SEARCH_FIELD_LEN 100
// 4. Parameter ist die gridSize!
int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int wordCount, char words[][100], unsigned int gridSize);
#endif #endif
// Datentyp für die Platzierungsrichtung (laut Aufgabenstellung)
typedef enum {
DIR_HORIZONTAL = 0,
DIR_VERTICAL = 1
} Direction;
// Prototyp der Spiellogik-Funktion
int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN],
unsigned int wordCount,
char words[][MAX_WORD_LEN],
unsigned int gridSize);
#endif // GAME_H