Added getopt; added help screen #4

This commit is contained in:
2017-05-02 16:50:43 +02:00
parent 6df0af4c2f
commit 83ffee4315
2 changed files with 81 additions and 15 deletions

View File

@@ -26,7 +26,7 @@ typedef struct word {
void quitProgram(void);
void updateScreen(game_state *gs);
void initCoordinates(game_state *gs);
void initGuessWord(game_state *gs);
void initGuessWord(game_state *gs, char *filename);
void drawGuessWord(game_state *gs);
int playerInput(game_state *gs);
int fillCurrentWord(game_state *gs, char validchar);
@@ -35,3 +35,6 @@ int checkWin(game_state *gs);
void printGameStats(game_state *gs);
void toLowerCase(char *str);
void showStartScreen(game_state *gs);
void startGame(game_state *gs);
void showHelp(game_state *gs);
int centerDiff(int coordinate, char *str);