/* 
 * Game interface for Homework 1X
 * These programs contains a few small routines to interface to
 * the WordMap and WordLoop ADT's.  The purpose of this interface
 * file is to ease the task of completeing the assignments, by placing
 * all the I/O routines in a main routine provided by the instructor.
 *
 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "WordLoop.h"
#include "WordMap.h"
#include "WordGameInterface.h"

/*
 * The CreateWordGameInterface initializes the Game Interface.
 * It returns a generic pointer that can be passed back to
 * the game interface.  The use of the generic pointer allows
 * the main MapGame routine to be compiled independently of
 * the MapLoop and MapWord ADT's
 */
void *CreateWGI(void) {
  /* This is probably all you need */
  return (void *)CreateWM() ;
}

int AddWordToKeyWGI(void *opaqP, const char *word, const char *key) {
  /* Eight lines needed here */
  return 0 ;
}

const char * LookupNextWordWGI(void *opaqP, const char *key) {
  /* And another eight lines here */
  return "FIX ME" ;
}

