forked from freudenreichan/info2Praktikum-Wortsalat
Spiellogik implementiert und mit gametest.c getestet
This commit is contained in:
1 parent
3fc54ae264
commit
9b704552cc
2 files changed
+129
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user