1 00:00:05,860 --> 00:00:06,460 Hey everyone. 2 00:00:06,670 --> 00:00:07,450 So don't. 3 00:00:07,450 --> 00:00:15,090 The boat also known the next step is the availability of free space is a space is free or not. 4 00:00:15,700 --> 00:00:19,650 So for that also we need to define functions here. 5 00:00:19,720 --> 00:00:21,700 Because again we didn't know where to edit them. 6 00:00:22,240 --> 00:00:31,000 So we will define functions like space is free. 7 00:00:31,000 --> 00:00:34,330 And that one is for when space is free. 8 00:00:34,330 --> 00:00:40,930 And we will require a barometer that is again the position because the space will be free for a particular 9 00:00:40,930 --> 00:00:41,530 position. 10 00:00:42,190 --> 00:00:46,880 And in that case it will just return that the space is free. 11 00:00:46,990 --> 00:00:50,550 On that particular position that is board position. 12 00:00:50,770 --> 00:00:54,210 And this will be an empty string at that point. 13 00:00:55,030 --> 00:00:57,750 So it will be done through. 14 00:00:58,420 --> 00:01:03,530 So remember this thing that when the space is free the function is returning true. 15 00:01:03,610 --> 00:01:06,440 And we are going to need that particular value. 16 00:01:06,490 --> 00:01:08,580 That is the true here. 17 00:01:08,620 --> 00:01:12,330 So this one is for when this space is free. 18 00:01:12,510 --> 00:01:15,230 And now what about when space is not free. 19 00:01:15,280 --> 00:01:17,130 So we also need to define that one. 20 00:01:17,350 --> 00:01:22,290 So for a little time just closed these functions and there we go. 21 00:01:23,460 --> 00:01:31,660 Now they define this one after these because in starting let we have only these main functions that 22 00:01:31,660 --> 00:01:33,800 is defined for devoting. 23 00:01:33,850 --> 00:01:35,080 This is done is also required. 24 00:01:35,110 --> 00:01:38,520 But this one is just for like my space is not free. 25 00:01:38,920 --> 00:01:42,330 So this function is something like we named this one. 26 00:01:42,520 --> 00:01:49,300 Like is board full and make this also. 27 00:01:51,370 --> 00:01:56,800 And this is not so so that it will properly define the. 28 00:01:56,820 --> 00:01:57,690 Different words. 29 00:01:58,210 --> 00:02:00,010 So is board full. 30 00:02:00,670 --> 00:02:03,810 And then again we will lend a parameter. 31 00:02:04,450 --> 00:02:09,920 But in this case we just need the board because the board is going to be filled. 32 00:02:10,270 --> 00:02:13,090 And then if 33 00:02:17,370 --> 00:02:27,230 a board and naval user attribute that is kind empty string created then. 34 00:02:27,240 --> 00:02:32,610 But in that case return false. 35 00:02:32,830 --> 00:02:35,760 Let me do this and first and I will explain you. 36 00:02:35,780 --> 00:02:42,280 That also defaults on boolean then a device 37 00:02:45,430 --> 00:02:46,240 return true. 38 00:02:47,470 --> 00:02:55,240 So here what I have done I have taken in the name that is is board full with the parameter board and 39 00:02:55,290 --> 00:03:00,730 in the case then board don't count of empty strings. 40 00:03:00,730 --> 00:03:03,370 This can function is used to count that particular value. 41 00:03:03,370 --> 00:03:08,830 And that what we are counting here the empty strings when that empty strings are greater then but what 42 00:03:08,830 --> 00:03:09,750 that means. 43 00:03:09,970 --> 00:03:17,030 That means there is some space in that particular board like head discount will be five so here we have 44 00:03:17,030 --> 00:03:22,870 the value five that is greater than one which means that we have vacant space. 45 00:03:22,880 --> 00:03:27,530 So in that case for this particular function this function is checking whether the board is full or 46 00:03:27,530 --> 00:03:28,220 not. 47 00:03:28,250 --> 00:03:30,290 So here the board is not full. 48 00:03:30,290 --> 00:03:32,480 So it will return false. 49 00:03:32,570 --> 00:03:35,120 Otherwise in all cases it will return true. 50 00:03:35,960 --> 00:03:41,790 So that's about the freeze and not fully. 51 00:03:42,080 --> 00:03:47,390 So we have also checked this space is the space is free or not free. 52 00:03:47,390 --> 00:03:51,980 Now what about the veena that how we can check diviner. 53 00:03:52,580 --> 00:03:58,550 So as I have told you go with maybe this video but this one is a little task for you tried to find out 54 00:03:58,550 --> 00:04:05,470 how we can check that who is winner for a tic tac toe and see in the next video the dissolution of this 55 00:04:05,470 --> 00:04:05,750 one.