diff --git a/src/main/c/Tim/hangman.c b/src/main/c/Tim/hangman.c index 49b7035..96ecc80 100644 --- a/src/main/c/Tim/hangman.c +++ b/src/main/c/Tim/hangman.c @@ -6,7 +6,7 @@ #include #include -#define LISTSIZE 10 +#define LISTSIZE 30 #define MAX_WORD_LENGTH 30 #define STAGENUM 7 #define ASCII_ART_SIZE 1000 @@ -15,8 +15,13 @@ char wordlist[LISTSIZE][MAX_WORD_LENGTH] = { "Kartoffel", "Zigarette", "Haus", "Fenster", "Kartenleseettiketiergeraet", - "Kleiderschrank", "Schnee","Wasserhahn", - "Fernbedienung", "Computertastatur" + "Kleiderschrank", "Schnee","Wasserhahn","Fernbedienung", + "Computertastatur", "Verlies","Zucchini","lizenzieren", + "Portemonnaie","brillant","Rückgrat","Toilettenpapier", + "Dachpappe","Hund","Zwiebelsuppe","Zebra", + "Kruzifix","Anschnallgurt","Bügeleisen","Fliesenleger", + "Adventskranz","Weihnachtsbaum","Autoreifen","Waschbecken", + "Busfahrkarte" }; char hangmanStages[STAGENUM][ASCII_ART_SIZE]={ diff --git a/src/main/c/Tim/hangman.h b/src/main/c/Tim/hangman.h index 380e5ab..45feb3e 100644 --- a/src/main/c/Tim/hangman.h +++ b/src/main/c/Tim/hangman.h @@ -2,6 +2,7 @@ #ifndef HANGMAN_H #define HANGMAN_H + void hangman(); char* getWordFromList(int); bool wordGuessed(char[],char[]); diff --git a/src/test/c/Tim/test_hangman.c b/src/test/c/Tim/test_hangman.c index 757ed29..4e6d98e 100644 --- a/src/test/c/Tim/test_hangman.c +++ b/src/test/c/Tim/test_hangman.c @@ -43,7 +43,7 @@ void test_getWordFromList_Kleiderschrank_5() void test_getWordFromList_IndexOutOfList() { //arrange - int pos = 15; + int pos = 60; char expectedResult[] = "Index nicht vorhanden"; //act char actualResult[30];