utils.h 345 B

123456789101112131415
  1. #ifndef UTILS_H_
  2. #define UTILS_H_
  3. #include <time.h>
  4. #include "../globals.h"
  5. extern boardInfo brdInfo;
  6. int randomInt(const int start, const int end, const unsigned int seed);
  7. int randomX(const clock_t initClock);
  8. int randomY(const clock_t initClock);
  9. void sleep_ms(const int ms);
  10. void printBoard(char board[][brdInfo.x]);
  11. #endif // UTILS_H_