Hi, welcome back.
In this video, you will learn helpful news for the hangmen project game, which are as the following
firstly or the first note, you need to be by some random module.
You will also import the words to be guessed by players from the hangmen Gissing module and also the
hangmen life module to be uploaded in your notebook.
Then you will use the random module to pick a word and lowercase and assign word letters as a variable
to the length of the guessing word, then declare a variable to end game called game over equal force
as a volume value.
Then assign the rise of the players to six, which means that every player plays a game, will have
sex it right before losing the game.
Then you will test your code, which is the first part of the game project code.
And to do that you will use the Python print function to print is against war chosen by random module,
then create a blank list called Prezant to add write letters that the player have guessed to that.
Then you will iterate over the players and both letters.
If the game not yet end using while loop and as a player enter a letter that they guessed.
Print the letter and let them know you can do that using f control flow conditional plus print function.
Now you need to check if the letter is right or wrong, using position envelope with range function
and print that.
And if the player gets the wrong letter, they will lose a try.
So you will inform the player that he loses a try by using brain function and you will substract this
try from the player Tri's.
And after the players lose all their tries, they will lose the game.
Then you will join all the elements and the result lists all the letters and the result list and turn
it into a strength and print that strength using design function or join a string function and python.
Then check if the players have got all the right letters so they will win the game and they have replaced
all the other schools.
And the result list by the write letters of the right guest world using F and the brain function to
print out a message or a winning message for the winning player.
The final part of our code is the following.
We will import the lives of the shapes of TREIS from hangmen, underscore life, the boy or module,
and Brent tries after every player input and its shape from the hangmen life by module.
At this point, we reach the end of this lecture.
Hope you enjoyed this lecture and get all of that.
Thanks for being here.
Hope you enjoyed this lecture and the next video we will apply.
These steps are helpful notes and convert it to our code and complete our project.
So see you next lecture.
I will let you for thirty seconds to read all the notes again and recap it.