You need a more robust source of words for your game to create a more dynamic experience for your user and to separate the logic from the data in your code. For this, you'll be sourcing your words data from a file.
Create a folder named data in the root hangman directory.
You need a more robust source of words for your game to create a more dynamic experience for your user and to separate the logic from the data in your code. For this, you'll be sourcing your words data from a file.
data
in the root hangman directory.Notes:
get_target_words
function needs to be changed