Main Page   File List   File Members   Related Pages  

frdi_shuffle_deck.c File Reference

go from a number to the ordering of a deck of 52 cards More...

#include "frdi.h"

Functions

deck * frdiDeckNew ()
int frdiDeckShuffleFactoriseOrder (int factors[FRDI_STANDARD_DECK_SIZE], frdi_bigint *order)
int frdiDeckShuffle (deck *unsorted, frdi_bigint *order)
char * frdiDeckDisplay (deck *mydeck, int deal)
void frdiDeckFree (deck *mydeck)


Detailed Description

go from a number to the ordering of a deck of 52 cards

Author:
Douglas Reay <douglas-legal@reay.org>
Warning:

Function Documentation

deck* frdiDeckNew  
 

Create a new deck object

int frdiDeckShuffleFactoriseOrder int    factors[FRDI_STANDARD_DECK_SIZE],
frdi_bigint *    order
 

0 is success, non 0 is failure

int frdiDeckShuffle deck *    unsorted,
frdi_bigint *    order
 

0 is success, non 0 is failure

char* frdiDeckDisplay deck *    mydeck,
int    deal
 

return a description of the desk

void frdiDeckFree deck *    mydeck
 

Call once a deck is no longer used


Generated on Wed Aug 18 13:24:07 2004 for Project Fairdice by doxygen1.2.18