home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
games
/
volume4
/
nobs2
/
defs.h
< prev
next >
Wrap
Text File
|
1988-05-20
|
726b
|
42 lines
/*
* defs.h - definitions.
*/
/* Suit has 3 bits, so we can use the green suit for estimating the cut.
*/
#define RANK(x) ((x)&0017)
#define SUIT(x) (((x)&0160)>>4)
#define SAMERANK(x,y) (!((x^y)&0017))
#define SAMESUIT(x,y) (!((x^y)&0160))
#define MAKECARD(r,s) ((r)|((s)<<4))
typedef char PLAYER;
#define PROGRAM 0
#define HUMAN 1
#define SCOREUP(a,b) {if (scoreup((a),(b))) {gameover++; return;}}
#define CABBAGE 4
#define SPADE 3
#define HEART 2
#define DIAMOND 1
#define CLUB 0
#define KING 13
#define QUEEN 12
#define KNAVE 11
#define TEN 10
#define NINE 9
#define EIGHT 8
#define SEVEN 7
#define SIX 6
#define FIVE 5
#define FOUR 4
#define TREY 3
#define DEUCE 2
#define ACE 1
typedef char CARD;
void shuf();