diff --git a/board.h b/board.h deleted file mode 100644 index 11ca32d..0000000 --- a/board.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef _PRINCEOFMYNES_BOARD_H -#define _PRINCEOFMYNES_BOARD_H - -#define MINE 1 -#define ENGINE_TICK 25 -#define DIR_UP 1 -#define DIR_DOWN 2 -#define DIR_RIGHT 3 -#define DIR_LEFT 4 -#define DIR_IDLE 0 - -#include -#include -#include - -struct Cell{ - int value; /*69 for a mine*/ - int state; /* 0-> not shown, 1-> shown*/ - int flagged; /* 0-> not flagged, 1-> flagged*/ -}; - -struct Board{ - int height; /*in cells*/ - int width; /*in cells*/ - int nmines; - int pos[2]; /*[0]->pos x, [1]->pos y*/ - struct Cell **board_state; -}; - -void gen_board(int, int, struct Board*); -void draw_board(struct Board*); -void draw_cursor(struct Board*); -int show_cell(int ,int, struct Board*); -void flag_cell(int ,int, struct Board*); -int reveal(int ,int, struct Board*); -void set_board(struct Board*); -void lose(int, int, struct Board*); -int around(int, int, int, int, struct Board*); - -#endif \ No newline at end of file