Tile Matching Game - Python Tkinter GUI Tutorial

  Рет қаралды 24,923

Codemy.com

Codemy.com

Күн бұрын

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!

Пікірлер: 41
@Codemycom
@Codemycom 4 жыл бұрын
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My KZbin Channel: bit.ly/2UFLKgj bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code bit.ly/3fLFQ8p
@shrinivaschaurasia6666
@shrinivaschaurasia6666 4 жыл бұрын
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.
@pititav.c.6618
@pititav.c.6618 4 жыл бұрын
Great way of explaining the logic of the game. Fantastic!!
@Codemycom
@Codemycom 4 жыл бұрын
Glad you think so!
@itayf.848
@itayf.848 4 жыл бұрын
Wow. I really like your videos! I learned a lot. You are a great teacher!
@Codemycom
@Codemycom 4 жыл бұрын
Thanks! Nice of you to say!
@RyanDanielG
@RyanDanielG 3 жыл бұрын
Smash that like button guys n gals! its free! great python tkinter tutorial, Codemy. Thanks
@EnderMalcolm
@EnderMalcolm 3 жыл бұрын
Perfect video to find for my finals project, just need to adjust a few things to fit the requirements of course.
@Codemycom
@Codemycom 3 жыл бұрын
Ha, nice!
@sakargiri95
@sakargiri95 4 жыл бұрын
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 !!
@Codemycom
@Codemycom 4 жыл бұрын
Very cool!
@coder101python3
@coder101python3 4 жыл бұрын
Hey nice vid! Come to expect noting less. keep it up!
@Codemycom
@Codemycom 4 жыл бұрын
Will do!
@praneetshakya3813
@praneetshakya3813 4 жыл бұрын
Was waiting for this. Thankyou
@Codemycom
@Codemycom 4 жыл бұрын
Hope you enjoyed it!
@praneetshakya3813
@praneetshakya3813 4 жыл бұрын
Yes i did
@Codemycom
@Codemycom 4 жыл бұрын
@@praneetshakya3813 Glad to hear it!
@rajasbagga7562
@rajasbagga7562 4 жыл бұрын
First comment... Great tutorial Sir keep it up.... Jai Shri Krishna(God worshiped mainly in India)
@Codemycom
@Codemycom 4 жыл бұрын
Thanks!
@jatingera924
@jatingera924 4 жыл бұрын
JAI SHREE KRISHNA AAPKO BHI
@professionalbreather62
@professionalbreather62 4 жыл бұрын
Why do you create each button individually? It’s a bit clunky :/
@oscarroman4901
@oscarroman4901 4 жыл бұрын
You're the man, great video!!
@Codemycom
@Codemycom 4 жыл бұрын
Thanks!
@aliceivanov2523
@aliceivanov2523 3 жыл бұрын
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
@wingielee
@wingielee 4 жыл бұрын
very long but very interesting... keep it up bro
@Codemycom
@Codemycom 4 жыл бұрын
Thanks!
@johnpro2847
@johnpro2847 3 жыл бұрын
19:05 Good news for many he is gone at last...i forgot this is not a pol site !
@whitebeard9852
@whitebeard9852 3 жыл бұрын
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
@NIGHTSTALKER0069
@NIGHTSTALKER0069 4 жыл бұрын
Divisible by two is the word he was looking for
@Codemycom
@Codemycom 4 жыл бұрын
that's three words lol
@hafiztaswer7652
@hafiztaswer7652 3 жыл бұрын
Hope your head is fine now
@Codemycom
@Codemycom 3 жыл бұрын
Oh yeah, that was a long time ago
@jabezborja
@jabezborja 4 жыл бұрын
I love it. Very nice explanation. But I don't know what 'lambda' really is.
@Codemycom
@Codemycom 4 жыл бұрын
just a way to pass things to a function in tkinter
@yestinbose5466
@yestinbose5466 3 жыл бұрын
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)
@yestinbose5466
@yestinbose5466 3 жыл бұрын
programs running well but i cant see the number when it runs :(
@roongsitpratheepasen1189
@roongsitpratheepasen1189 3 жыл бұрын
​@@yestinbose5466 try this ! b["text"] = matches[number] :D
@maggieweber8419
@maggieweber8419 2 жыл бұрын
Hi everyone! anyone know how to replace the text with images?
@Codemycom
@Codemycom 2 жыл бұрын
Yes, in the same way you would ever use images in tkinter. I have many videos on the playlist about images.
@mynameisgod1135
@mynameisgod1135 4 жыл бұрын
please do a video on toolbar
@Codemycom
@Codemycom 4 жыл бұрын
I have already
Create Stunning Python GUIs in 10 Minutes With Drag & Drop
11:38
Coding Is Fun
Рет қаралды 108 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Retro MS-DOS Coding - Recreating the Iconic Award BIOS Screen
18:16
NCOT Technology
Рет қаралды 46 М.
How I Made the Google Dino Game in PYTHON (5 MINS)
4:49
baraltech
Рет қаралды 19 М.
Trump announced the end date of the war / Emergency plane landing
14:05
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,6 МЛН
Rock Paper Scissors Game - Python Tkinter GUI Tutorial #144
22:24
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН