2 * hangman: hangman game implementation
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 * Luiz Fernando N. Capitulino
19 * <lcapitulino@gmail.com>
30 #define UNUSED(x) (x = x)
38 static void usage(void)
40 printf("Usage: hangman [ -h | -d ]\n");
43 int main(int argc
, char *argv
[])
46 struct dict_line line
;
51 if (!memcmp(argv
[1], "-h", 2)) {
55 if (!memcmp(argv
[1], "-d", 2))
62 printf("\nJogo da forca\n\n");
63 printf("1. Novo jogo\n"
64 "2. Manipular dicionario\n"
67 scanf("%d", (int *) &op
);
72 dict_pick_up_word(&line
);
73 run_game(line
.word
, line
.tip
);
79 printf("\nBye, bye!\n");
83 eprint("Function not implemented");