board size change feature

This commit is contained in:
2024-08-28 10:07:35 +03:00
parent 47d72e2df1
commit 9b515ae973
7 changed files with 69 additions and 80 deletions

View File

@@ -1,14 +1,16 @@
#ifndef GLOBALS_H_
#define GLOBALS_H_
// Total board size
#define BRD_SIZE_X 30
#define BRD_SIZE_Y 15
typedef struct {
int x;
int y;
} boardInfo;
// Playable board coord range values
#define PL_BRD_XS 1
#define PL_BRD_XE BRD_SIZE_X - 2
#define PL_BRD_YS 1
#define PL_BRD_YE BRD_SIZE_Y - 2
typedef struct {
int xs;
int xe;
int ys;
int ye;
} playableBoardInfo;
#endif // GLOBALS_H_