1 00:00:00,750 --> 00:00:02,080 Hi, welcome back. 2 00:00:02,340 --> 00:00:10,650 In this video, you will learn helpful news for the hangmen project game, which are as the following 3 00:00:11,400 --> 00:00:17,700 firstly or the first note, you need to be by some random module. 4 00:00:18,030 --> 00:00:27,030 You will also import the words to be guessed by players from the hangmen Gissing module and also the 5 00:00:27,030 --> 00:00:33,300 hangmen life module to be uploaded in your notebook. 6 00:00:33,720 --> 00:00:42,750 Then you will use the random module to pick a word and lowercase and assign word letters as a variable 7 00:00:42,930 --> 00:00:53,910 to the length of the guessing word, then declare a variable to end game called game over equal force 8 00:00:54,180 --> 00:00:55,740 as a volume value. 9 00:00:56,580 --> 00:01:07,470 Then assign the rise of the players to six, which means that every player plays a game, will have 10 00:01:07,470 --> 00:01:10,620 sex it right before losing the game. 11 00:01:11,310 --> 00:01:19,350 Then you will test your code, which is the first part of the game project code. 12 00:01:20,100 --> 00:01:28,860 And to do that you will use the Python print function to print is against war chosen by random module, 13 00:01:29,760 --> 00:01:38,910 then create a blank list called Prezant to add write letters that the player have guessed to that. 14 00:01:39,270 --> 00:01:43,740 Then you will iterate over the players and both letters. 15 00:01:43,740 --> 00:01:54,330 If the game not yet end using while loop and as a player enter a letter that they guessed. 16 00:01:54,690 --> 00:02:05,430 Print the letter and let them know you can do that using f control flow conditional plus print function. 17 00:02:06,120 --> 00:02:15,870 Now you need to check if the letter is right or wrong, using position envelope with range function 18 00:02:16,170 --> 00:02:17,580 and print that. 19 00:02:18,060 --> 00:02:23,850 And if the player gets the wrong letter, they will lose a try. 20 00:02:24,390 --> 00:02:36,680 So you will inform the player that he loses a try by using brain function and you will substract this 21 00:02:36,680 --> 00:02:39,240 try from the player Tri's. 22 00:02:39,420 --> 00:02:45,600 And after the players lose all their tries, they will lose the game. 23 00:02:46,140 --> 00:02:54,080 Then you will join all the elements and the result lists all the letters and the result list and turn 24 00:02:54,090 --> 00:03:05,170 it into a strength and print that strength using design function or join a string function and python. 25 00:03:06,210 --> 00:03:17,310 Then check if the players have got all the right letters so they will win the game and they have replaced 26 00:03:17,310 --> 00:03:19,240 all the other schools. 27 00:03:19,240 --> 00:03:30,570 And the result list by the write letters of the right guest world using F and the brain function to 28 00:03:30,570 --> 00:03:38,280 print out a message or a winning message for the winning player. 29 00:03:38,790 --> 00:03:42,240 The final part of our code is the following. 30 00:03:42,780 --> 00:03:53,280 We will import the lives of the shapes of TREIS from hangmen, underscore life, the boy or module, 31 00:03:54,060 --> 00:04:03,330 and Brent tries after every player input and its shape from the hangmen life by module. 32 00:04:03,480 --> 00:04:06,220 At this point, we reach the end of this lecture. 33 00:04:06,420 --> 00:04:09,350 Hope you enjoyed this lecture and get all of that. 34 00:04:09,360 --> 00:04:10,740 Thanks for being here. 35 00:04:11,040 --> 00:04:15,720 Hope you enjoyed this lecture and the next video we will apply. 36 00:04:15,720 --> 00:04:25,980 These steps are helpful notes and convert it to our code and complete our project. 37 00:04:26,490 --> 00:04:30,420 So see you next lecture. 38 00:04:30,840 --> 00:04:37,350 I will let you for thirty seconds to read all the notes again and recap it.