mirror of https://github.com/abakh/nbsdgames.git
use common.h
This commit is contained in:
parent
55758fc915
commit
d9691c8af0
|
@ -10,7 +10,8 @@ To the extent possible under law, the author(s) have dedicated all copyright and
|
||||||
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "config.h"
|
#include "common.h"
|
||||||
|
|
||||||
typedef unsigned char ubyte;
|
typedef unsigned char ubyte;
|
||||||
|
|
||||||
#define size 8
|
#define size 8
|
||||||
|
|
2
mines.c
2
mines.c
|
@ -10,7 +10,7 @@ You should have received a copy of the CC0 Public Domain Dedication along with t
|
||||||
|
|
||||||
compile with -lncurses
|
compile with -lncurses
|
||||||
*/
|
*/
|
||||||
#include "config.h"
|
#include "common.h"
|
||||||
#define FLAG 9
|
#define FLAG 9
|
||||||
#define UNCLEAR 10
|
#define UNCLEAR 10
|
||||||
#define MINLEN 8
|
#define MINLEN 8
|
||||||
|
|
|
@ -12,7 +12,7 @@ You should have received a copy of the CC0 Public Domain Dedication along with t
|
||||||
compile with -lncurses
|
compile with -lncurses
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "common.h"
|
||||||
#define UP 1
|
#define UP 1
|
||||||
#define RIGHT 2
|
#define RIGHT 2
|
||||||
#define DOWN 4
|
#define DOWN 4
|
||||||
|
|
|
@ -11,7 +11,7 @@ You should have received a copy of the CC0 Public Domain Dedication along with t
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#include "config.h"
|
#include "common.h"
|
||||||
byte py,px;//cursor
|
byte py,px;//cursor
|
||||||
const char piece[2] = {'O','X'};
|
const char piece[2] = {'O','X'};
|
||||||
char game[8][8];//main board
|
char game[8][8];//main board
|
||||||
|
|
Loading…
Reference in New Issue