Browse Source

clean up header files

remotes/origin/Saba
Saba Fazlali 11 months ago
parent
commit
2294174e2f
  1. 3
      src/main/c/Hangman/drawHangman.h
  2. 5
      src/main/c/Hangman/initializeHangman.h
  3. 10
      src/main/c/Hangman/playHangman.h

3
src/main/c/Hangman/drawHangman.h

@ -3,4 +3,7 @@
#include <stdio.h>
void drawHangman(int incorrectGuesses);
void currentState(char *currentGuess, int mistakes);
#endif //PMUW_PROJEKT_NOTEBINDER_DRAWHANGMAN_H

5
src/main/c/Hangman/initializeHangman.h

@ -3,4 +3,9 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
void initializeHangman(char *wordToGuess, char *currentGuess);
void printRules();
void displayRules();
#endif //PMUW_PROJEKT_NOTEBINDER_INITIALIZEHANGMAN_H

10
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
Loading…
Cancel
Save