From 0ee1c4e689ab1defe7bdc24ee166bb92877016ff Mon Sep 17 00:00:00 2001 From: Philipp Date: Mon, 26 Oct 2026 16:09:41 +0100 Subject: [PATCH] =?UTF-8?q?Game.c=20vervollst=C3=A4ndigt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Startcode/game.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/Startcode/game.c b/Startcode/game.c index 803301f..9ed1ef1 100644 --- a/Startcode/game.c +++ b/Startcode/game.c @@ -13,5 +13,62 @@ // 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) { + int row, col, word, startcol=0, startrow=0; + srand(time(NULL)); + for(row=0; row