How to make Minesweeper in Pygame - Step-by-Step Tutorial for beginner

preview_player
Показать описание
In this video we will be creating the classic minesweeper game using pygame and Object Oriented Programming.

In this tutorial, we will create the classic Minesweeper game using the Python, Pygame library, and Object-Oriented Programming principles. We will start by designing the game window and then move on to building the game logic, adding the images, and creating all the events.
We will also cover some advanced techniques, such as recursion, to implement the game mechanics. By the end of this video, you will have a good understanding of how to develop a complete game using Pygame and OOP concepts.

I hope you guys enjoy it!

👍 Like to show your support!
⭐ Subscribe for more pygame content!

00:00 - Intro / Game explanation
03:42 - Game class
05:57 - Setting up the Settings file
12:25 - Tile Class
15:24 - Board Class
19:48 - Drawing the Tiles
22:05 - Placing the mines
26:51 - Placing the Clues
35:04 - Testing the mines and clues
37:05 - Redefining Tile draw function
28:45 - Mouse Events
43:03 - Dig Algorithm
51:07 - Finishing up the events
55:20 - Check win function
58:23 - End screen function
59:48 - Final tests
1:00:05 - Outro
Рекомендации по теме
Комментарии
Автор

Awesome tutorial. Thank you so much. I've been trying to find a good minesweeper python tutorial. Yours is literally the best one

sylviachen
Автор

Really good tutorial and well explained! Doesn't the real minesweeper always guarantee first click is not mine? How could this be implemented? Maybe only creating the board after you have the first-clik's coordinates?

Nuohis
Автор

Hi, Awesome game and tutorial. Anyway I can contact you as I have a few queries.

tos
Автор

Why do you guys (pygame YouTubers) always have so less subs? And channel like these doesn't appear when we search pygame on YouTube

cleanmess
Автор

I get a vague error called AttributeError: 'Game' object has no attribute 'new' and I don't know what the culprit is

astroidexadam
Автор

good video!
the codes a bit small for my eye balls tho

TestikleDestroya
Автор

Nice tutorial. i cant download the asset files.

NNotSwiss
Автор

For the record, that's not how you start doing a game.

danielwilkowski
visit shbcf.ru