That's why I'm receiving here the location parameter, right. So with that being said, let's get started. So if we are going to click right click on a cell, then it is going to color it with a color like orange, maybe some color that will be a good color to differentiate between a mind candidate to an actual mind that basically leads us to lose the game. minesweeper.py contains all of the logic the game itself and for the AI to play the game. Because that is just a more realistic variable name. So I'm going to create a metal inside my soul class, which I'm going to be calling left click Actions like that and that's going to also receive silver for sure it's an instance man Third, and then it's only going to say, I am left clicked, just as a basic example, I'm going to leave it as it is. The Sentence class will be used to represent logical sentences of the form described in the Background. One, right? Now let's see if we have done a great job, you can see that the result is again perfect. All right, we're going to have Jim, Michael and Paul. And once we will instantiate from this frame class, then it will be responsible to instantiate a frame which we will decide later on where we'd like to Located on our Windows. So now it's a great time to change our frames to black. So that's why I want to make sure that we keep the value of 100 ad. When you play Minesweeper, where it has 36 cells, now, you can actually go ahead and pass in here some formula that will be responsible to make the buttons smaller if the grid size gets bigger. So this means that now we have the control to bring this one that one and this and that and this in that and also those two here. Extracting Date from Datetime in Python: 3 Methods Explained, Creating and Saving Data to CSV Files with Python, Handling ValueError in Python: Detecting Strings and Integers, 4 Ways to Strip the Last Comma from Strings in Python, Working with Stata Files in Python: Reading Variable Labels with Pandas, Suppressing Scientific Notation in Python for Float Values. Now, this is actually a mind because for example, if we take a look at this cell, right, you can see that it's supposed to have one mind, in here, here, here, here or there. So at first I'm going to print the event. So when I go ahead and execute our program, then you can see that I receive Jim and Michael. Now what grid does, it takes the parent element, which is quite right there, and it turns the parent element into columns and rows. So I'm going to go here and make this a little bit bigger. And right after that, I left click on that, right like the following, then you can see that now we have a bit of problem, because we might also expect to have the original background color again. So let me show you in a separated window, why that's going to be helpful having such a method. minesweeper-python So if we are going to enter here, then we want to launch a for loop that will be responsible to basically display the minds length for all the surrounded cells. And now that we have this, then we can go ahead and use this from the main.py, like the following. Now, you can see here that the right button looks like it is before the left button, because we can almost not see the text on the left button here.