From e0bd8b46ea0fccae74d139ee794571af6568e8f3 Mon Sep 17 00:00:00 2001 From: Philipp Date: Mon, 26 Oct 2026 21:22:12 +0100 Subject: [PATCH] =?UTF-8?q?Abfrage=20nach=20korrektem=20Platzieren=20aller?= =?UTF-8?q?=20W=C3=B6rter=20eingef=C3=BCgt,=20Unity=20Tests=20bestanden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Startcode/game.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Startcode/game.c b/Startcode/game.c index 50411e2..536bf91 100644 --- a/Startcode/game.c +++ b/Startcode/game.c @@ -8,7 +8,7 @@ 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; + int row, col, word, startcol=0, startrow=0, placedWord=0; srand(time(NULL)); for(row=0; row