Annotation of 43BSD/games/hangman/main.c, revision 1.1.1.1

1.1       root        1: # include      "hangman.h"
                      2: 
                      3: /*
                      4:  * This game written by Ken Arnold.
                      5:  */
                      6: main()
                      7: {
                      8:        initscr();
                      9:        signal(SIGINT, die);
                     10:        setup();
                     11:        for (;;) {
                     12:                Wordnum++;
                     13:                playgame();
                     14:                Average = (Average * (Wordnum - 1) + Errors) / Wordnum;
                     15:        }
                     16:        /* NOTREACHED */
                     17: }
                     18: 
                     19: /*
                     20:  * die:
                     21:  *     Die properly.
                     22:  */
                     23: die()
                     24: {
                     25:        mvcur(0, COLS - 1, LINES - 1, 0);
                     26:        endwin();
                     27:        putchar('\n');
                     28:        exit(0);
                     29: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.