/*
	Hangman Designed by : Steve Boxall
 */

#include <stdlib.h>
#include <libraries/asl.h>
#include <stdio.h>
#include <time.h>
#include <graphics/gfxmacros.h>

extern void updateStrGad(struct Window *win, struct Gadget *Gad, UBYTE *newstr);
extern void DrawHangman(struct Window *win);
extern void ReadWordFile(void);
extern int check_field(char *r_p);
extern void rtrimstr(char from[]);
extern void ltrimstr(char from[]);
extern char *DupString(char *from);
extern void ShowAboutBox();
extern void ShowWinnerBox();
extern void ShowLoserBox();
extern int HangmanRequest(struct Window *Win);
extern int HangmanRequestG(struct Window *Win);

extern int ReadLine(char *s, int sdblim, FILE *input);
extern void updateTxtGad(struct Window *win, struct Gadget *gad, struct IntuiText *newstr);

char 		      *Guess_Filename_g;
char 		      *Guess_User_g;
char 		      *Guess_Word_g;
char 		      *Guessed_User_g;
char		      *Guess_Mask_g;	
int 		      Guess_Number_g =0;
char 		      *Word_List[100];
int 		      Item_Count_g;
int		      Game_On_g=0;	
int 		      running;

struct IntuiText Gadget2Text={1,0,JAM2,4,4,NULL,NULL,NULL};
struct IntuiText Gadget3Text={1,0,JAM2,4,14,NULL,NULL,NULL};