Skip to content

Instantly share code, notes, and snippets.

View Petros626's full-sized avatar

Petros626

View GitHub Profile
@martyworm
martyworm / hangman.c
Last active August 12, 2022 15:09
command line hangman game in C
/* I started this hangman game when I was about 3 weeks into Harvard's CS50 course
I just watched the "week 6" lecture. I'm very new to programming (about 1 month).
Anyway I'm really proud of this little command line hangman game. */
#define _XOPEN_SOURCE 500
#define MAXWORDLENGTH 12
#define MINWORDLENGTH 3
#define MAXARRAYLENGTH 12
#define MINTRIES 5