Hangman
- 2 Devlogs
- 3 Total hours
A terminal hangman game in Python
A terminal hangman game in Python
It is the second to last day of school, and that means a lot of free time to code!
I worked on more functions that I will use, and I added docstrings for everything. I have an ask_for_letter() function that will do the heavy lifting for the hangman logic to keep a clean main.py.
So far in main.py, I have logic to choose the word. I will expand main.py, but most of the logic will be kept in functions.
I got a great start to this project. I wrote some functions that I will need to call in main.py, specifically one to ask the user for manual or random word choice, one to check the location of a letter in a word, and to choose a random word.
I am trying to follow some best practices for Python, like functions in a separate file, docstrings, return type annotations, and descriptive errors.
Next, I will finish up some of the major functions and start on main.py.