BSD 4_3 development
[unix-history] / usr / src / games / hangman / playgame.c
# include "hangman.h"
/*
* playgame:
* play a game
*/
playgame()
{
register bool *bp;
getword();
Errors = 0;
bp = Guessed;
while (bp < &Guessed[26])
*bp++ = FALSE;
while (Errors < MAXERRS && index(Known, '-') != NULL) {
prword();
prdata();
prman();
getguess();
}
endgame();
}