From 2f0857c711f9e4034da4d429e41500f251228412 Mon Sep 17 00:00:00 2001 From: zidanmo99094 Date: Fri, 30 Oct 2026 15:18:54 +0100 Subject: [PATCH] testt --- Startcode/game.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Startcode/game.h b/Startcode/game.h index 41c9c0c..ebd8132 100644 --- a/Startcode/game.h +++ b/Startcode/game.h @@ -3,9 +3,21 @@ #include "input.h" +// Falls MAX_SEARCH_FIELD_LEN noch nicht definiert ist: +#ifndef MAX_SEARCH_FIELD_LEN #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 + +// 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 \ No newline at end of file