From 2294174e2f6a47da4bbeb876d97ccc4cfe6447a1 Mon Sep 17 00:00:00 2001 From: Saba Fazlali Date: Thu, 8 Feb 2024 23:21:49 +0100 Subject: [PATCH] clean up header files --- src/main/c/Hangman/drawHangman.h | 3 +++ src/main/c/Hangman/initializeHangman.h | 5 +++++ src/main/c/Hangman/playHangman.h | 10 ++-------- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/c/Hangman/drawHangman.h b/src/main/c/Hangman/drawHangman.h index 2c31273..2c1256d 100644 --- a/src/main/c/Hangman/drawHangman.h +++ b/src/main/c/Hangman/drawHangman.h @@ -3,4 +3,7 @@ #include +void drawHangman(int incorrectGuesses); +void currentState(char *currentGuess, int mistakes); + #endif //PMUW_PROJEKT_NOTEBINDER_DRAWHANGMAN_H diff --git a/src/main/c/Hangman/initializeHangman.h b/src/main/c/Hangman/initializeHangman.h index 58f5700..a7159d1 100644 --- a/src/main/c/Hangman/initializeHangman.h +++ b/src/main/c/Hangman/initializeHangman.h @@ -3,4 +3,9 @@ #include #include #include + +void initializeHangman(char *wordToGuess, char *currentGuess); +void printRules(); +void displayRules(); + #endif //PMUW_PROJEKT_NOTEBINDER_INITIALIZEHANGMAN_H diff --git a/src/main/c/Hangman/playHangman.h b/src/main/c/Hangman/playHangman.h index b516283..4adc2ce 100644 --- a/src/main/c/Hangman/playHangman.h +++ b/src/main/c/Hangman/playHangman.h @@ -8,16 +8,10 @@ #include "drawHangman.h" #include "word_selector.h" +#define MAX_MISTAKES 6 + // Include function implementations directly from .c files void playHangman(); -void initializeHangman(char *wordToGuess, char *currentGuess); -void printRules(); -void drawHangman(int incorrectGuesses); -void currentState(char *currentGuess, int mistakes); -const char* selectRandomWord(); -const char wordsList_easy[NUM_WORDS][MAX_WORD_LENGTH + 1]; -void displayRules(); -#define MAX_MISTAKES 6 #endif // PMUW_PROJEKT_NOTEBINDER_PLAYHANGMAN_H