@@ -1,8 +1,6 @@
#include <stdio.h>
-#include "../globals.h"
-
-extern boardInfo brdInfo;
+#include "board.h"
void setBoardBorders(char board[][brdInfo.x]) {
for (int i = 0; i < brdInfo.y; i++) {
@@ -1,7 +1,17 @@
#ifndef BOARD_H_
#define BOARD_H_
+typedef struct {
+ int x;
+ int y;
+} boardInfo;
+
+ int xs;
+ int xe;
+ int ys;
+ int ye;
+} playableBoardInfo;
extern boardInfo brdInfo;
@@ -1,16 +0,0 @@
-#ifndef GLOBALS_H_
-#define GLOBALS_H_
-typedef struct {
- int x;
- int y;
-} boardInfo;
- int xs;
- int xe;
- int ys;
- int ye;
-} playableBoardInfo;
-#endif // GLOBALS_H_
@@ -10,9 +10,8 @@
#include "./utils/utils.h"
#include "./snake/snake.h"
#include "./board/board.h"
-#include "globals.h"
-const char* VERSION = "1.1.6";
+const char* VERSION = "1.1.7";
const char SNAKE_VIS = '#';
@@ -1,7 +1,7 @@
#ifndef SNAKE_H_
#define SNAKE_H_
+#include "../board/board.h"
@@ -3,7 +3,7 @@
#include <time.h>