You are browsing as a guest. Sign up (or log in) to start making projects!

Hangman

  • 2 Devlogs
  • 3 Total hours

A terminal hangman game in Python

Open comments for this post

1h 33m 43s logged

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.

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.

Replying to @thanEay

0
1
Open comments for this post

1h 16m 35s logged

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.

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.

Replying to @thanEay

0
1

Followers

Loading…