Delete 'board.h'

This commit is contained in:
Gladosse 2022-01-03 20:16:30 +01:00
parent 1a5b540bd1
commit fda5e4b466
1 changed files with 0 additions and 40 deletions

40
board.h
View File

@ -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 <gint/display.h>
#include <gint/timer.h>
#include <gint/clock.h>
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