utils.h 459 B

12345678910111213141516171819202122232425262728
  1. #ifndef UTILS_H
  2. #define UTILS_H
  3. #define TIME_INTERVAL 60
  4. typedef struct user {
  5. char name[9];
  6. int max_score;
  7. int total_games;
  8. int total_score;
  9. struct user * next;
  10. } User;
  11. //extern xh board[16];
  12. int login();
  13. int verify_word(char* word);
  14. void scoreboard();
  15. int initialzie_dictionary();
  16. void update_scores(int new_score, int old_score);
  17. void free_dictionaries();
  18. void free_players();
  19. void reset_words();
  20. int write_users();
  21. int read_users();
  22. #endif