From 5282605b1b11cacd47e2341a6e2c89d075cce1b8 Mon Sep 17 00:00:00 2001 From: Hopfe Date: Thu, 15 Oct 2026 11:09:54 +0200 Subject: [PATCH] erster commit --- game.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 game.c diff --git a/game.c b/game.c new file mode 100644 index 0000000..803301f --- /dev/null +++ b/game.c @@ -0,0 +1,17 @@ +#include "game.h" +#include +#include +#include + +#define MAX_RAND_TRIES_PER_WORD 10 +#define EMPTY_CHAR 0 + +//TODO: Spiellogik implementieren: +/* * Wörter aus der Wortliste zufällig horizontal oder vertikal platzieren + * restliche Felder mit zufälligen Buchstaben füllen */ + +// Creates the word salad by placing words randomly and filling empty spaces +int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount) +{ + +}