How to Code a Matching Game In Python Using PyGame! Full Guessing Game!!

preview_player
Показать описание
Learn to Program a Randomly Generated Matched Pairs guessing game in Python Using PyGame!

This tutorial shows how to build a complete game in Python start to finish including random board creation, player controls and interactions, hiding and then revealing pieces, and so much more!

Check out my personal channel for more fun science content!

By the end of this tutorial you can create your own matching game and change as much about it as you want to make it your own!

If you like this video be sure to subscribe to the channel and like the video for tons of great content just like this to keep being produced.

If you have questions or want to see something specific in a future video let me know about it in the comments below!

Thanks for watching and good luck with your code!
Рекомендации по теме
Комментарии
Автор

This guy is an absolute genius!! How did you make that up! I am impressed.

willwillcode
Автор

Great video tutorial! Brilliant! Thank you very much!!

angelitorivera
Автор

That was a fun one!
I give only half a second for the lookup tho;)

flioink
Автор

Thanks so much for the tutorial! Can you do the same tutorial but with added pictures on the cards:)?

friedabreitschuh
Автор

It was very helpful, thanks for the valuable explanation.

yasinuscosinus
Автор

Hey when I put in this code
piece_text = small_font.render(f'{spaces[i*rows+j]}', True, gray)
screen.blit(piece_text, (i*75+18, j*65 +120))

39:07
I am getting error: IndexError: list index out of range
How to fix, I put in the same code

ecdefoundation
Автор

May I ask, did you use some kind of algorithm in here ? I'm just curious.

JeraldAndamon
Автор

Brilliant video. I'm learning python and this is the first project I have followed along with and entered the code at the same time. How would you be able to export this to someone? Especially if they do not have python or anything installed. Can it be exported as a standalone game?

Paul-lypw
Автор

hey, i love this tutorial! i was wondering if there was anyway to add a complex algorthim to this game

xoon
Автор

Hi it is difficult for me (french people) to follow your excellent tutorial. Can you tell me where i can find the code. Regards

jwbchzu
Автор

Hey is there a way I can add a "for loop" in check guess function or add more parameters in my program?

ecdefoundation
Автор

Next video I think you should increase the font size in PyCharm. Much easier for the audience to follow

ttvpuwo
Автор

Hi why is it that every time i run the code it’s a blank black screen but you can only see it for a few seconds after you exit out?

innssx
Автор

hey i was wondering how you would go about having the high score or previous best saved each time you load up the game and have it keep updating each time its beaten. From your current code it seem that the best score is only displayed while the game is open and resets back to 0 each time i run it.

Doppel-GangerNZ
Автор

Hi, I am nto able to draw the text on the screen when I used your steps and added the ttf file

Mooksie
Автор

Great tutorial, but I have no idea how to use pictures instead of the numbers.
I am an absolute beginner, so, anyone who figured this out?

emilezwartele
Автор

I really don't need one hour and 27 minutes to understand the code. This is a bit tedious. A github repo would be a welcome addition!

husssamo
welcome to shbcf.ru