Files
info2Praktikum-Wortsalat/Startcode/gametest.c
T

28 lines
467 B
C

#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;
}