Merge branch 'main' of https://git.efi.th-nuernberg.de/gitea/kleinleinta105608/Informatik2-Praktikum-Wortsalat
This commit is contained in:
commit
6c5710f2f1
1 file changed
+2
-2
+2
-2
@@ -3,7 +3,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#define MAX_RAND_TRIES_PER_WORD 10
|
||||
#define MAX_RAND_TRIES_PER_WORD 1000
|
||||
#define EMPTY_CHAR 0
|
||||
|
||||
// TODO: Spiellogik implementieren:
|
||||
@@ -11,7 +11,7 @@
|
||||
* 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 wordCount, char **words)
|
||||
int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount)
|
||||
{
|
||||
// 1. Spielfeld vollständig mit EMPTY_CHAR initialisieren
|
||||
for (int r = 0; r < MAX_SEARCH_FIELD_LEN; r++) {
|
||||
|
||||
Reference in new issue
Block a user