commit 5282605b1b11cacd47e2341a6e2c89d075cce1b8 Author: Hopfe Date: Thu Oct 15 11:09:54 2026 +0200 erster commit 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) +{ + +}