|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T d
Length: 726 (0x2d6)
Types: TextFile
Names: »defs.h«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
└─⟦this⟧ »EUUGD18/General/Nobs/defs.h«
/*
* 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();