2 Commits
Author SHA1 Message Date
D2A62006 c410d9287e Remove TODO comments for game logic implementation in game.c 2025-11-06 13:47:48 +01:00
D2A62006 4d09d52506 final changes 2025-11-06 12:35:52 +01:00
2 changed files with 2 additions and 6 deletions

No files matched your search

+1 -5
View File
@@ -8,10 +8,6 @@
#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)
{
@@ -31,7 +27,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
int placed = 0;
if(wordLen > searchFieldLen){
printf("Word %s is too long!\n", words[w]);
//printf("Word %s is too long!\n", words[w]);
break;
}
//Try multiple times to find a valid position
+1 -1
View File
@@ -5,7 +5,7 @@
#include "graphicalGame.h"
#define MAX_NUMBER_OF_WORDS 100
#define SALAD_SIZE 10
#define SALAD_SIZE 20
int main(int argc, char *argv[])