1*33107Sbostic /* 2*33107Sbostic * Copyright (c) 1987 Regents of the University of California. 3*33107Sbostic * All rights reserved. 4*33107Sbostic * 5*33107Sbostic * Redistribution and use in source and binary forms are permitted 6*33107Sbostic * provided that this notice is preserved and that due credit is given 7*33107Sbostic * to the University of California at Berkeley. The name of the University 8*33107Sbostic * may not be used to endorse or promote products derived from this 9*33107Sbostic * software without specific prior written permission. This software 10*33107Sbostic * is provided ``as is'' without express or implied warranty. 11*33107Sbostic */ 12*33107Sbostic 13*33107Sbostic #ifndef lint 14*33107Sbostic static char sccsid[] = "@(#)extern.c 5.1 (Berkeley) 12/22/87"; 15*33107Sbostic #endif /* not lint */ 16*33107Sbostic 17*33107Sbostic # include "hangman.h" 18*33107Sbostic 19*33107Sbostic bool Guessed[26]; 20*33107Sbostic 21*33107Sbostic char Word[BUFSIZ], 22*33107Sbostic Known[BUFSIZ], 23*33107Sbostic *Noose_pict[] = { 24*33107Sbostic " ______", 25*33107Sbostic " | |", 26*33107Sbostic " |", 27*33107Sbostic " |", 28*33107Sbostic " |", 29*33107Sbostic " |", 30*33107Sbostic " __|_____", 31*33107Sbostic " | |___", 32*33107Sbostic " |_________|", 33*33107Sbostic NULL 34*33107Sbostic }; 35*33107Sbostic 36*33107Sbostic int Errors, 37*33107Sbostic Wordnum = 0; 38*33107Sbostic 39*33107Sbostic double Average = 0.0; 40*33107Sbostic 41*33107Sbostic ERR_POS Err_pos[MAXERRS] = { 42*33107Sbostic { 2, 10, 'O' }, 43*33107Sbostic { 3, 10, '|' }, 44*33107Sbostic { 4, 10, '|' }, 45*33107Sbostic { 5, 9, '/' }, 46*33107Sbostic { 3, 9, '/' }, 47*33107Sbostic { 3, 11, '\\' }, 48*33107Sbostic { 5, 11, '\\' } 49*33107Sbostic }; 50*33107Sbostic 51*33107Sbostic FILE *Dict = NULL; 52*33107Sbostic 53*33107Sbostic off_t Dict_size; 54