Emile VD Heyde

Logo

Curious Problem Solver | Data Analyst | Data Science Enthusiast | Python Lover

View My LinkedIn Profile

View My Curriculum Vitae

View My GitHub Profile

Hangman Command-Line Game

Back to Project List

Project Description:

This project creates a game to guess a word based on two categories and allows users to input letters to guess the word.

Click here to View .py or .ipynb files relating to this project

1. Build the list of possible words

Extract with Beautiful soup HTML parser to extract from a Wikipedia page the words under each category.

2. Randomly select the word to guess for the round

Allow the user to select a category and randomly pick a word in this category

3. Build up a Metadata file and store in DataBase

Allow the user to input data and create a mechanism to assess the input using conditional loops

3. Extract the actual data

Run through the HTML per day, to extract the values and store in database

4. Respond to users input

Respond if a user is correct or and respond if incorrect, give the answer once the number of turns has expired

image

image

This project was a code improvement of the framework from https://www.pythonforbeginners.com/code-snippets-source-code/game-hangman/

Improvements to the code included;

-I included a new feature to have more than one category ;

-I Included a feature to display the attempts remaining even though you got it correct;

-Added a feature that made the game not sensitive to text case.

Packages used : Beautiful Soup | Pandas | Requests | LMXL | RANDOM | TIME

Back to Project List