|
|
1.1 root 1: /*
2: * Copyright (c) 1983 Regents of the University of California.
3: * All rights reserved.
4: *
5: * Redistribution and use in source and binary forms are permitted
6: * provided that: (1) source distributions retain this entire copyright
7: * notice and comment, and (2) distributions including binaries display
8: * the following acknowledgement: ``This product includes software
9: * developed by the University of California, Berkeley and its contributors''
10: * in the documentation or other materials provided with the distribution
11: * and in all advertising materials mentioning features or use of this
12: * software. Neither the name of the University nor the names of its
13: * contributors may be used to endorse or promote products derived
14: * from this software without specific prior written permission.
15: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18: *
19: * @(#)hangman.h 5.4 (Berkeley) 6/1/90
20: */
21:
22: # include <curses.h>
23: # include <sys/types.h>
24: # include <sys/stat.h>
25: # include <ctype.h>
26: # include <signal.h>
27: # include "pathnames.h"
28:
29: # define MINLEN 6
30: # define MAXERRS 7
31:
32: # define MESGY 12
33: # define MESGX 0
34: # define PROMPTY 11
35: # define PROMPTX 0
36: # define KNOWNY 10
37: # define KNOWNX 1
38: # define NUMBERY 4
39: # define NUMBERX (COLS - 1 - 26)
40: # define AVGY 5
41: # define AVGX (COLS - 1 - 26)
42: # define GUESSY 2
43: # define GUESSX (COLS - 1 - 26)
44:
45:
46: typedef struct {
47: short y, x;
48: char ch;
49: } ERR_POS;
50:
51: extern bool Guessed[];
52:
53: extern char Word[], Known[], *Noose_pict[];
54:
55: extern int Errors, Wordnum;
56:
57: extern double Average;
58:
59: extern ERR_POS Err_pos[];
60:
61: extern FILE *Dict;
62:
63: extern off_t Dict_size;
64:
65: int die();
66:
67: off_t abs();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.