play.h

/*  File:        play.h
    Programmer:  Tep Dobry
    login:       tep
    Date:
*/

/*  This module is responsible for playing for one round of the game.  */
/*  This file contains prototypes and macros used in the module        */

/*  The maximum number of guesses is 6  */
#define MAX_GUESSES  6

#define LOSE 0
#define WIN  1

#define HI   2
#define LOW  3

int play(int pick);
/*  This function plays one round of the game.
  Given: the random number picked
  Return: win or loose
*/

int test(int picked, int guessed);
/*  This function tests the players guess.
        Given: the pick and the guess
        Return: win, high or low
*/