How to Build 2048 in 20 Minutes (Python and Tkinter tutorial)

preview_player
Показать описание
2048! The game you couldn't put down. Learn how to build it in this 20 minute Python tutorial using Tkinter. This game tutorial shows you how to build a game from scratch using Tkinter for the graphical user interface, or GUI. Tkinter is the Python binding to the Tk toolkit, which is used across many programming languages for building GUIs.

***************************************

***************************************
ADDITIONAL RESOURCES:

6 Python Tips and Tricks YOU Should Know ►

Push- Up Bot?! Make a Discord Bot in Python [step-by-step tutorial] ►

How to Build HANGMAN in 10 Minutes (Python tutorial) ►

***************************************
Don’t forget to subscribe :)

STAY TUNED:
Рекомендации по теме
Комментарии
Автор

When you are normally faster than python programming tutorials because you have kite but he has kite too...

leo
Автор

this made a good final project, but man you go way too fast and offer way too little explanation as to what's going on for this to be a "tutorial"

ryanc.
Автор

You didn't make a single typing mistake. I was just stunned by that thing. The game is awesome.

omkashyap
Автор

I see tutorials use kite all of the time but i could never figure out what it was. thank you so much for the link.

brooklyn-lxui
Автор

so sad that kite is gone
We pay respect to you

srinivasachowdary
Автор

Thank you for this tutorial. They are maybe little bit to fast. So I never do it in 20 mins :). I use Kite everytime

davidstranava
Автор

Thank you Ryan Gosling for this amazing video.

MitchReichenbach
Автор

Thank you so (i spend more than one week to finish my python programming)

mikethegamedev
Автор

so outdated... no written code provided that points to the video,
watched the video many times and still the code that i wrote from the video doesn't work.
the uploader doesn't even reply to messages

Major Problems:
the code doesn't stop and doesn't print you loose.
functionality of moving buttons is wrong.


lots of minor problems not going to list them all

alkiviades
Автор

sir your teaching just flew up above my head.
but you have very high level coding skills i am surprised with that.
Thankyou very much
Love from INDIA.

I_am_Raxal_Rajput
Автор

If the game crashes when you lose, you have to modify some lines.

First of all in the add_new_tile function you have to add "if any(0 in row for row in self.matrix):" and indent all the content of the function. (Fratzlol comment)

and you have to go to the "game_over" function and replace" game_over_frame = tk.Frame(self.main_grid, borderwith=2)" with "game_over_frame = tk.Frame(self.main_grid, borderwidth=2)"

LordChopsElIntangible
Автор

Excuse me, i m litte confused. To add number in each frame we use label on it. But when i tried it, its made the main grid shrink. So i got the answer it with use grid_propagate and its fixed the problem but, how did your code not get a problem like me?

evanariawan
Автор

Hello I have made the GUI but it doesn't work there is an error and it says unknown option height

studyingisfun
Автор

There is actully a bug : when you press a key but nothing happen a new randow frame appear but in the true game, this does not happen.

ArnaudDeVuyst
Автор

Hey, Kite, I want to thank you for your hard work I have a question though after I reached 4:52 I started facing a problem with make_GUI it's telling me "Local function 'make_GUI' is not used" can you please help me with this issue.

saltygamer
Автор

i still get problem in the game_over part, it will get crash if there are no empty cell anymore, pls someone help :' thanks

AzmiAlfatih-plgq
Автор

Please help i have a error

AttributeError: module 'colors' has no attribute 'GRID_COLOR'

samoyedfranek
Автор

Hi dude. I have been using mainly pycharm for python programming, so I just want to ask what package you used for the colour.

quantumiser
Автор

In visual studio code, i can't import colors😶😮‍💨😔

ASSASINPUBGMBILE
Автор

When I run this in VS code, I cannot see the game, but it works fine in Pycharm. Why is it not working in VS code?

Paul-lypw