game.c 476 B

123456789101112131415161718192021222324252627
  1. //ready
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include <stdlib.h>
  5. #include <time.h>
  6. #include <ctype.h>
  7. #include <signal.h>
  8. #include <unistd.h>
  9. #include "utils.h"
  10. int round_num;
  11. int score;
  12. int word_score;
  13. int old_score;
  14. int skip;
  15. char* actions[2] = {"quit", "logout"};
  16. char* messages[7] = {"Too Short", "Already Found", "Not on Board", "Not a Word", "Welcome to Boggle", "Hello Again", "New Round"};
  17. void swap(int* i, int* j) {
  18. int temp = *i;
  19. *i = *j;
  20. *j = temp;
  21. }