1 00:00:02,730 --> 00:00:09,300 Hello and welcome to this lecture of our first milestone closure. 2 00:00:12,010 --> 00:00:24,090 We will discuss in this lecture helpful notes and steps forward as a project of this game colors the 3 00:00:24,100 --> 00:00:25,950 choices game project. 4 00:00:25,960 --> 00:00:29,520 Helpful notes and steps endless text lecture. 5 00:00:29,740 --> 00:00:34,460 You will have guides for helping you to complete the project. 6 00:00:34,480 --> 00:00:44,560 Sometimes this project can feel difficult like being at the end of closed way so you will learn how 7 00:00:44,620 --> 00:00:51,850 to find an open way to the solution to help you out with this. 8 00:00:51,850 --> 00:01:01,760 Here is some notes to help you understand how to start coding and sing in solution and you'll see you 9 00:01:01,760 --> 00:01:03,700 Sean may look completely different. 10 00:01:03,780 --> 00:01:06,460 Then they give in solutions that is right. 11 00:01:06,490 --> 00:01:14,020 If it works properly if this notes below isn't fully helpful for you. 12 00:01:14,020 --> 00:01:18,670 Check out the project walkthrough for more explanation and help. 13 00:01:19,210 --> 00:01:26,680 So what is the project school and what you need in this project to happen. 14 00:01:26,680 --> 00:01:36,980 Firstly we need to create choices for players and choices for computer then ask players for inputs. 15 00:01:37,040 --> 00:01:45,640 I'm convinced that in both with the choice of the computer check if the game is one tied lost and all 16 00:01:45,640 --> 00:01:52,120 going repeat these steps until the game has been won or tied up. 17 00:01:52,180 --> 00:02:01,130 If players want to play again and if players agree to start the game again and if players say no. 18 00:02:01,760 --> 00:02:04,800 Hence the game and say thanks for the players. 19 00:02:05,110 --> 00:02:15,120 Let's break those notes down into steps converting needed modules for our projects then we was defines 20 00:02:15,160 --> 00:02:24,940 I mean why loop and both the second why loop inside it the key it colors the choices as variables and 21 00:02:25,000 --> 00:02:33,310 specify colors of the game insides nested while loop defines the game rules by using the second why 22 00:02:33,310 --> 00:02:43,930 loop if statement ends random modules using the second why loop if a statement ends the random modules 23 00:02:44,060 --> 00:02:55,930 grind and function to get an integer between 1 and 5 then random modules Rand init function to get an 24 00:02:55,930 --> 00:03:05,170 integer between 1 and 5 Z parents out of these big nested loops and if statements inside these baked 25 00:03:05,170 --> 00:03:14,350 y loop so scores of computer and to player after each player's tab views the F statement to ask as a 26 00:03:14,350 --> 00:03:19,210 player if you want to play again as a player it shows yes. 27 00:03:19,300 --> 00:03:23,590 So the start of the game if the player say no. 28 00:03:23,590 --> 00:03:30,890 So in that game and say thanks for playing Rachel and remember this is mine is from Ambrose. 29 00:03:30,930 --> 00:03:33,130 So it means to be challenging. 30 00:03:33,160 --> 00:03:38,380 So try to learn from other things that you may want to unbalance. 31 00:03:38,380 --> 00:03:45,760 Taking a player and ambushed how to take up a player and book you have to use ember function you can 32 00:03:45,760 --> 00:03:53,740 use that as fun with the underscored choice pick will end up in parenthesis and books of any second 33 00:03:53,770 --> 00:03:55,310 parenthesis. 34 00:03:55,410 --> 00:04:03,130 Course enter valid and both call column pros double quotes close parenthesis close at last parenthesis 35 00:04:03,250 --> 00:04:12,640 you should make it an ambush function to avoid coding errors then you would see a pop up message core 36 00:04:13,050 --> 00:04:22,600 was a text box asking you for your input Xenu with type and the number and press Enter now is up as 37 00:04:22,600 --> 00:04:31,490 a program we'll compare between computer choice and the player ample to ensure of player valid input 38 00:04:31,900 --> 00:04:41,320 ends up project solution the program remind a player to a bot and a correct and a valid emblem a game 39 00:04:41,320 --> 00:04:44,340 from number one to number five. 40 00:04:44,390 --> 00:04:51,400 One two three four five throw a message in the start of the game. 41 00:04:51,460 --> 00:04:53,080 Thank you for watching. 42 00:04:53,080 --> 00:04:54,820 See you next lecture.