This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
from nytimesarticle import articleAPI | |
import csv | |
import sys | |
import re | |
import urllib.request | |
import time | |
import requests | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from hang_aesthetics import * | |
def main(): | |
while True: | |
hangman_word = generate_random() | |
play_game(hangman_word) | |
if play_again() == 2: | |
break |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#define MAXNODES 3 | |
typedef struct node | |
{ | |
int val; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//cant get rid of the zero | |
#include <stdlib.h> | |
#include <stdio.h> | |
#define MAXNODES 3 | |
typedef struct node | |
{ | |
int val; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 |