kleiner Fix in game.c

This commit is contained in:
Manuel Glock committed 2026-10-23 10:31:33 +02:00
1 parent 0344fc3566
commit 274c50c8db
1 file changed
+1 -13
+1 -13
View File
@@ -5,13 +5,8 @@
#define MAX_RAND_TRIES_PER_WORD 10
#define EMPTY_CHAR 0
#define SIMPLE_MODE 1 // keine Reverse einträge?
typedef enum
{
HORIZONTAL,
VERTICAL
} Direction;
typedef enum { HORIZONTAL, VERTICAL } Direction;
static int canPlaceWord(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], const char *word, unsigned int wordLen, unsigned int row, unsigned int col, Direction dir){
for(unsigned int k = 0; k < wordLen; k++){
@@ -48,13 +43,6 @@ static int tryPlaceWord(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN],
unsigned int searchSize;
unsigned int row, col;
/* Hatte ueberlegt hier einen schwer Modus zubauen der auch woerter rueckwaerts setzt, war dann aber zu faul.
if(SIMPLE_MODE){
searchSize = searchFieldLen - wordLen;
} else {
searchSize = searchFieldLen;
}
*/
searchSize = searchFieldLen - wordLen;
if(dir == HORIZONTAL)