|
|
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 p
Length: 1183 (0x49f)
Types: TextFile
Names: »poker.h«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
└─⟦this⟧ »EUUGD18/General/Poker2/poker.h«
/*******************************************************/
/* This must be altered to the location of the rules */
/* file, and the paging method used, e.g. more. */
/*******************************************************/
#define INSTRUCTIONS "/usr/ucb/more /usr/games/lib/poker_rules"
/* Leave the rest */
#include <stdio.h>
#define HAND_SIZE 5
#define DECK_SIZE 52
typedef struct{ /* This is the structure of a single card */
char face;
char suit;
int face_value;
int suit_value;
} playing_card;
typedef struct{/* what is a flush made of */
int flush_of; /* length of flush */
int cards[HAND_SIZE]; /* cards in flush */
} flush;
typedef struct{/* pairs etc. */
int p_type;
int no_of_cards;
int cards[HAND_SIZE];
} prile;
typedef struct{/* partial runs */
int length;
int card[HAND_SIZE];
int open_str;
} run;
typedef struct{/* high cards >= 10 */
int number;
int cards[HAND_SIZE];
} high;
typedef struct{/* hand description */
int hand_value;
int reject;
int exchange[3]; /* max number of cards to exchange */
} describe;