#include <stdio.h>
#include "globals.h"

void cgi_bin(void)
{
  int t, r, c, i;
  char tile[128];
  char *wm[] = { ".", "empty", "doublwrd", "triplwrd" };
  char *lm[] = { ".", "empty", "double", "triplet" };
  char *wm2[] = { ".", ".", "+", "#" };
  char *lm2[] = { ".", ".", "-", "=" };

  for (r = 1; r <= 15; r++) {
    for (c = 1; c <= 15; c++) {
      t = '@'+afill[r][c];
      if ((i = wordmult[r][c]) > 1) {
        sprintf(tile, "%s", wm2[i]);
      } else if ((i = lettermult[r][c]) > 1) {
        sprintf(tile, "%s", lm2[i]);
      } else {
        sprintf(tile, ".");
      }
      if (r == 8 && c == 8) sprintf(tile, "*");
      if (t != '@') {
        if (islower(t)) {
          sprintf(tile, "%c", t);
	} else {
          sprintf(tile, "%c", t);
	}
      }
      fprintf(stdout, "%s", tile);
    }
    fprintf(stdout, "\n");
  }
  fprintf(stdout, "??????? 0 0\n");
}