/*
** showmaze.c  Copyright 1991 Kent Paul Dolan,
**             Mountain View, CA, USA 94039-0755
**
** Written to satisfy an inquiry on USENet's rec.games.programmer newsgroup.
** May be freely used or modified in any non-commercial work.  Copyrighted
** only to prevent patenting by someone else.
*/

#include <stdio.h>
#include "townmaze.h"
#include "townproto.h"

#ifdef __STDC__
void showmaze()
#else
int showmaze()
#endif
{
  int i, j;

/*
** Draw the character version of the maze to stdout.
*/

#if PROGRESS
  fprintf(stdout,"\n");
#endif

  for (i = 0; i < mazeheight; i++)
  {
    for (j = 0; j < mazewidth; j++)
      fprintf(stdout,"%c",cmaze[i][j]);
    fprintf(stdout,"\n");
  }
  return;
}
