/******************************************************************* 
* 
*	slot-skeleton.c 
* 
*	Skeleton code for slot.c, a slot machine simulation. 
* 
*	INPUT:		number of games to play 
* 
*	OUTPUT:		results of games 1-5 
*				number of games 
*				number won 
*				percent won
* 
*******************************************************************/ 
#include	<stdio.h>  
#include	<stdlib.h> 
 
/*------------------------------*/
/*	Slot fruits 		*/
/*------------------------------*/
#define		NBR_POSSIBLE_FRUITS	6  
#define		WILD	1  
#define		BANANA	2 
#define		CHERRY	3 
#define		ORANGE	4 
#define		LEMON	5 
#define		GRAPE	6 
 
/*------------------------------*/
/*	Function prototypes	*/
/*------------------------------*/
int	slot	   (int); 
int	won_game   (int,int,int); 
int	rand_int   (int,int); 
char*	fruit_name (int);
 

int main (int argc, void **argv) 
{  
} 
 
int slot (int nbr_fruits) 
{ 
} 
 
int won_game (int f1, int f2, int f3) 
{ 
} 
 
int rand_int (int a, int b) 
{ 
} 
 
/*------------------------------------------------ 
*	fruit_name() 
* 
*	Returns string containing name of the fruit. 
*-------------------------------------------------*/ 
char* fruit_name(int f) 
{ 
	switch (f) 
	{ 
	case BANANA:	return("BANANA"); 
	case CHERRY:	return("CHERRY"); 
	case ORANGE:	return("ORANGE"); 
	case GRAPE:	return("GRAPE"); 
	case LEMON:	return("LEMON"); 
	case WILD:	return("WILD"); 
	default:	return("ERROR"); 
	}
}  

