root/snippet/console_mine/libmine.h

Revision 85, 476 bytes (checked in by aqua, 2 years ago)

add console mine project

Line 
1#define WIDTH          9
2#define HEIGHT         9
3
4#define GAME_ERR      -1
5#define GAME_START     0
6#define GAME_CONT      1
7#define GAME_DIE       2
8#define GAME_END       3
9#define GAME_FULL_STAT 4
10
11#define UNCHECKED      0
12#define MINE          -1
13#define NUM            1
14
15#define MAXMINE       15
16
17void mine_start( int* map, int num, int x, int y );
18int  mine_tick( int* map, int* show, int x, int y, int mine );
19int  mine_end( int* map, int* show );
Note: See TracBrowser for help on using the browser.