1 00:00:06,020 --> 00:00:13,750 Everyone so that this video will begin to work on that one the matchmaker and here mystic wonder pillow 2 00:00:13,760 --> 00:00:14,470 fight. 3 00:00:14,670 --> 00:00:21,750 I'm going to read the code in this one so first of all we will begin with importing the liabilities 4 00:00:21,950 --> 00:00:31,690 to libraries we require here is random we require time after that one from thing to 5 00:00:34,390 --> 00:00:35,560 import. 6 00:00:35,650 --> 00:00:46,580 First of all pre-K after that one a button and then a game on known as disabled labial. 7 00:00:46,620 --> 00:00:49,620 So now let the creative window for that one. 8 00:00:49,620 --> 00:00:58,530 We have a variable win that is equal to pre-K and then pass win don't main loop so that we can try to 9 00:00:58,530 --> 00:01:01,110 take them on in between these. 10 00:01:01,140 --> 00:01:03,560 So this is about creating the window. 11 00:01:03,580 --> 00:01:13,530 Now if you'll notice on our matchmaker window then there's something in this one like when I get to 12 00:01:13,530 --> 00:01:22,420 the bank of item I got this option to expand this one but with this one I'm not getting something because 13 00:01:22,420 --> 00:01:25,330 the size of this matchmaker is not very sizable. 14 00:01:26,380 --> 00:01:33,480 So that's something to make you understand a little topic that is how you can make of window fixed. 15 00:01:33,550 --> 00:01:43,170 So for that one there's a basic common would not re sizable and industry sizable there is no E this 16 00:01:43,170 --> 00:01:47,160 is just re sizable after that one. 17 00:01:47,200 --> 00:01:49,170 In this you need to pass with 18 00:01:51,840 --> 00:01:57,660 equal to folds and also height equal to points 19 00:02:00,200 --> 00:02:02,000 ship it done so we say. 20 00:02:02,200 --> 00:02:06,350 And now this is matchmaker. 21 00:02:06,720 --> 00:02:13,830 For that one that one by one by wondered why so Python 3 wondered why. 22 00:02:13,950 --> 00:02:15,180 There you go. 23 00:02:15,310 --> 00:02:19,780 So here we have this window and we are not getting the option to resize this one. 24 00:02:21,030 --> 00:02:22,490 As you can see here. 25 00:02:22,840 --> 00:02:29,240 But if I make one of these through here see this one through. 26 00:02:29,920 --> 00:02:31,610 And now on this one. 27 00:02:31,810 --> 00:02:33,190 Then I will get that option there. 28 00:02:33,790 --> 00:02:34,720 So it doesn't matter. 29 00:02:35,940 --> 00:02:43,810 That you are making it falsehood hide false you need to pass both of them false entry size issue. 30 00:02:43,960 --> 00:02:50,640 So David Goldman after that gone through I did title to this one so window title. 31 00:02:52,620 --> 00:03:01,760 And that is something like matchmaker so match maker logo. 32 00:03:01,770 --> 00:03:03,410 Now this is about the window. 33 00:03:03,690 --> 00:03:07,070 And if you run that one right now you will get this one matchmaker. 34 00:03:08,700 --> 00:03:12,350 So here at this point we have created a window. 35 00:03:12,420 --> 00:03:19,800 Now I'm going to take a few variables here that I'm declaring now but going to require later individuals. 36 00:03:19,890 --> 00:03:25,840 First one is just first and in initial condition I'm making this one true. 37 00:03:26,550 --> 00:03:32,860 So this variable is used like here when I'm running my matchmaker. 38 00:03:32,890 --> 00:03:35,850 Then when I click first cut it remains same. 39 00:03:35,880 --> 00:03:39,090 But when I click second one they both get flipped over. 40 00:03:39,840 --> 00:03:41,490 So how that is happening. 41 00:03:41,490 --> 00:03:47,380 So there's something I need there that can make sure that that the card I'm clicking is first or second. 42 00:03:48,360 --> 00:03:51,490 So this is the variable that will take care of that thing. 43 00:03:51,750 --> 00:03:54,610 And I will require two more variables here. 44 00:03:54,870 --> 00:03:56,710 That is previous X.. 45 00:03:57,150 --> 00:04:03,300 Initially zero and previous y initially. 46 00:04:03,300 --> 00:04:08,960 SIEGEL These are the variables that will remember the card. 47 00:04:09,590 --> 00:04:12,580 So here I just remember that whether this is a flash card or not. 48 00:04:12,650 --> 00:04:18,440 And these two variables remember the coordinates of that particular card like this one if I consider 49 00:04:18,740 --> 00:04:22,390 this one as a symmetric type then this is 0 0. 50 00:04:22,430 --> 00:04:29,740 And this is going to be 5 5 because 0 1 2 3 4 5 0 1 2 3 so sorry 3 5. 51 00:04:29,810 --> 00:04:31,700 Because we have four rows there. 52 00:04:32,930 --> 00:04:35,600 So David will remember the x axis. 53 00:04:35,610 --> 00:04:44,800 Or we can say ID rope or the y axis sic column or whatever you want to give them so just these variables. 54 00:04:44,980 --> 00:04:52,800 Now in the next video we will color that how we can have these symbols on this match make a dopey white 55 00:04:53,040 --> 00:04:55,420 like on the cards we are getting scissors and paint. 56 00:04:56,250 --> 00:04:57,210 So thanks for watching. 57 00:04:57,330 --> 00:04:58,290 So in the next video.