Spiellogik implementiert und mit gametest.c getestet

This commit is contained in:
perschkema103633 committed 2026-10-19 22:32:49 +02:00
1 parent 3fc54ae264
commit 9b704552cc
2 files changed
+129

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
#include <stdio.h>
#include "game.h"
int main(void)
{
char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN];
const char words[][MAX_WORD_LEN] = {
"HALLO",
"WELT",
"AUTO"
};
unsigned int wordCount = sizeof(words) / sizeof(words[0]);
int placedWords = createWordSalad(
salad,
MAX_SEARCH_FIELD_LEN,
words,
wordCount
);
printf("Placed words: %d\n", placedWords);
return 0;
}