boggle.h 989 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef HEADERFILE_H
  2. #define HEADERFILE_H
  3. #include <stdlib.h>
  4. #include <stdio.h>
  5. #include <string.h>
  6. #define TIME_INTERVAL 60
  7. extern int rounds;
  8. extern int signaled;
  9. extern int end;
  10. typedef struct user {
  11. char * name;
  12. int highscore;
  13. int total_games;
  14. int total_score;
  15. struct user * next;
  16. }User;
  17. typedef struct user_s {
  18. char * name;
  19. int score;
  20. struct user_s* next;
  21. }User_s;
  22. void addUser(User_s * head, int user, int score);
  23. int validUser(char * str);
  24. void createLL( User * head);
  25. int userExists(char * str);
  26. int userLogin();
  27. void userUpdate(User * head, int un, int s);
  28. void freeLL(User * head);
  29. void capitalize(char* s);
  30. int wordval(char * s);
  31. void createLL_s(User_s* head);
  32. void freeLL_s(User_s * head);
  33. void displayScoreboard(User_s * head);
  34. int isInDictionary(char * word);
  35. int hasBeenUsed(char ** words, char * word);
  36. int create_sigaction_rounds();
  37. int create_sigaction_endgame();
  38. void createboard(char ** arr);
  39. #endif