forked from freudenreichan/info2Praktikum-Wortsalat
WiP game.c
This commit is contained in:
1 parent
8c4e01b75c
commit
d5be49e0ff
1 file changed
+3
-5
+3
-5
@@ -15,16 +15,14 @@
|
||||
int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsigned int searchFieldLen, const char words[][MAX_WORD_LEN], unsigned int wordCount)
|
||||
{
|
||||
srand(time(NULL));
|
||||
char bustaben[] = "abcdefghijklmnopqrstuvwxyz";
|
||||
char bustaben[] = "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z";
|
||||
char zufall = bustaben[rand() % 26];
|
||||
|
||||
printf("Zufaelliger Bustabe: %c\n", zufall);
|
||||
|
||||
const char words[][MAX_WORD_LEN] ={
|
||||
"Yeti","Nessie","Werwolf","Vampir","Monster","Hydra","Frankenstein","Dracula","KingKong","Gremlin","Kobold","Hexe","Poltergeist","Gespenst,""Oge"
|
||||
const char words[15][MAX_WORD_LEN] = "Yeti,Nessie,Werwolf,Vampir,Monster,Hydra,Frankenstein,Dracula,KingKong,Gremlin,Kobold,Hexe,Poltergeist,Gespenst,Oge";
|
||||
|
||||
|
||||
};
|
||||
unsigned int wordcound = 15;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user