![]() So I will say from tkinter, import everything. So we're going to start by importing this in the following way. In this one, we are going to use TK inter which is very nice and a great library to practice because it comes with a lot of useful classes that we are going to instantiate to create our window. Now for writing a board game a 2d game, then we can use a lot of libraries that are available in Python. So that's okay, if you even use python three point 10 Or python three point 11 That will upcoming in the future probably. Now we are not going to use too much external libraries, or too much code that is dependent on the version of the Python. Now before we get into writing this project, I will expect to you to have Python installed on your computer.Īnd as well as a an IDE that is ready to go with and it recognizes the Python interpreter on your computer, I'm going to use Python 3.8.īut as long as you have a version that is above that version, then you should be fine writing this project. So with that being said, let's get started. So before we get started, I'd appreciate if you can click on a like button on that video, it will help to spread the video to the entire YouTube.Īnd also if you know people that are just starting to learn Python, and they want to develop a cool project, then welcome them to watch my series as well, it could be very helpful for those videos that are just in the level of between getting started and to being an expert. So that's going to be a lot of thinking that we have to do in order to develop that game.Īnd it's going to be cool dealing with all the challenges that this game brings with it. So what I'm going to do now is to try to get the rest of the locations that are mindless locations, right, so I'm going to click there.Īnd you can see that I received some numbers, you can see that, for example, around the sale, I have zero mine, so it is safe to click here, here and as well as there.Īnd now let's try to left click on that location.Īnd you can see that it says you clicked on a mind and I lost a game.Īnd the main goal is really to get all the locations that are not having a mind and then you will win the game. So I'm going to click with my right click of the mouse to mark it as a mind because if I was to click that with my left mouse click, then y will lose the game, right. So I'm going to guess and say that you don't have in mind here. Now this means that in the surrounding sales of that sale, there is one mind that I should not click on. So what that means it means that if I was to go and open it, then you can see I receive a number back. Now the main goal in Minesweeper is to not click on a sale that has a mind behind the sale. Now we can see that we have some amount of sales that we can go click and open them. Let's see what game you will learn to develop in that series.Īlright, so that's going to be the game that we will be developing throughout the series. Now in this series, we will develop a game that is called Minesweeper, which is known as a single player game that is very fun to play, and also challenging. Now if you know the basics, and you took some basic course, no matter what channel or what course it is, then this is the series that you are looking for, because it will give you the basics of how to start structuring a Python project. Well, this series of videos is exactly for you, because in this series of videos, we are going to develop a game with Python. So he just started to learn Python and you will want to develop a cool project after learning the basics. Jim has created many popular courses on our channel, and is an excellent teacher. In this course, Jim will help you improve your Python skills by teaching you how to build a minesweeper game. Watch the full course below or on the YouTube channel (3-hour watch). ![]() Minesweeper (but not the version you will create) Here are the sections covered in this tutorial: The game is fully implemented using Object Oriented Programming. He has published many popular programming courses both on the freeCodeCamp channel and his own channel. Jim from JimShapedCoding developed this course. We just published a Python course on the YouTube channel that will teach you how to code Minesweeper using the tkinter library. ![]() Improve your Python programming skills by coding everyone's favorite Windows 3.1 game: Minesweeper.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |