DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦4ac54eecf⟧ TextFile

    Length: 333 (0x14d)
    Types: TextFile
    Names: »cards.h«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Poker/cards.h« 

TextFile

extern	char	ranks[];	/* card ranks 2-A */
extern	char	suits[];	/* card suits D,C,H,S */

# define	card(x)		((x) % 13)
# define	suit(x)		((x) / 13)
# define	rank(x)		(ranks[card(x)])
# define	color(x)	(suits[suit(x)])

extern	void	shuffle();	/* shuffle a deck of cards */
extern	int	crandom();	/* return random number 0 .. limit-1 */