troll mode added #7

This commit is contained in:
2017-05-03 19:38:10 +02:00
parent d0d3c6e7bd
commit fbf1d10af1
2 changed files with 44 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ typedef struct {
int wordLength;
char currentWord[MAXWORDLENGTH];
char wrongCharacters[DEFAULTTRIES];
int trollEnabled;
} game_state;
typedef struct word {
@@ -40,3 +41,4 @@ void startGame(game_state *gs);
void showHelp(game_state *gs);
int centerDiff(int coordinate, char *str);
void readRandomLine(char *file, char *result);
void trollHitScreen(game_state *gs, int hits);