Tile Matching Game - Python Tkinter GUI Tutorial #141

preview_player
Показать описание
In this video we'll build a tile matching memory game with Tkinter and Python.

We'll create 12 tiles that are blank. The user can click on a tile and show what secret number that tile holds. After clicking on two tiles, the user will either have matched the tiles or not.

If the tiles don't match, we'll flip them back over and start again.

It's a fun one!
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code

Codemycom
Автор

In order to add game over functionality make a global win_count variable and initialize it to 0 then increment it by 2 in (matches[ans_list[0]] == matches[ans_list[1]]) block.
Then at the last of the function add:
if win_count == 12:
msg box

By the way it was an awesome tutorial.

shrinivaschaurasia
Автор

Great way of explaining the logic of the game. Fantastic!!

pititav.c.
Автор

Wow. I really like your videos! I learned a lot. You are a great teacher!

itay.finkel
Автор

Why do you create each button individually? It’s a bit clunky :/

professionalbreather
Автор

Dude your video are watched from Nepal (If you know the country)
Well watching almost all of your tkinter video I am quiet comfortable with this framework. Thanks a lot !!

sakargiri
Автор

Smash that like button guys n gals! its free! great python tkinter tutorial, Codemy. Thanks

RyanDanielG
Автор

Perfect video to find for my finals project, just need to adjust a few things to fit the requirements of course.

EnderMalcolm
Автор

Hey nice vid! Come to expect noting less. keep it up!

coderpython
Автор

Hello, I know it's hard for you to answer on such an old video but I really need an answer right now...
I am doing this game as a project and I have to make it with images, but when I assign an image to a button the button just shrinks and I don't know what to do...

def flip(bt, pic):
global count, piclist
if bt["text"]=='' and count<2:
bt['image'] = matches[pic]


" bt['image'] = matches[pic]" this line right here makes the picture appear but the button is shrunk with the picture on it... please help me..

aliceivanov
Автор

First comment... Great tutorial Sir keep it up.... Jai Shri Krishna(God worshiped mainly in India)

rajasbagga
Автор

Hey,
I have a problem with the code that said (list indices must be integers or slices, not button)
In line (answer_dict[b] = matches[numbers])
Any one can answer

whitebeard
Автор

very long but very interesting... keep it up bro

wingielee
Автор

Hi sir good day! Very nice video and good explanation. I just have a quick question. When I run the program, I can click the buttons and everything but the numbers aren't appearing. Can anybody help me. Thank you so much! 13:15 (duration of the video)

yestinbose
Автор

19:05 Good news for many he is gone at last...i forgot this is not a pol site !

johnpro
Автор

Divisible by two is the word he was looking for

NIGHTSTALKER
Автор

I love it. Very nice explanation. But I don't know what 'lambda' really is.

jabezborja
Автор

Hi everyone! anyone know how to replace the text with images?

maggieweber
join shbcf.ru