File: globals.h

package info (click to toggle)
gpe-othello 0.2-4
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 260 kB
  • ctags: 125
  • sloc: ansic: 1,544; xml: 79; makefile: 50; sh: 4
file content (38 lines) | stat: -rw-r--r-- 535 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _GLOBALS
#define _GLOBALS


#define		larg 8
#define		haut 8
#define		xlarg larg + 1
#define		xhaut haut + 1
#define		vide 0
#define		blanc 1
#define		noir -blanc

#ifndef TRUE
#define TRUE 1
#endif

#ifndef FALSE
#define FALSE 0
#endif

typedef struct {
	short h,v;
} Coords;

typedef short Grille[xhaut+1][xlarg+1];

typedef Grille * GrillePtr;


extern short	quit;
extern Grille	tableau, etatPrecedent;
extern short	coulact;
extern Coords	caseJouee;
extern short	jblordi, jnoordi;
extern short	depth;

#endif /* _GLOBALS */