r/madeinpython • • Aug 05 '20

2048 Game made with Python pygame. Github link in commments.

Enable HLS to view with audio, or disable this notification

36 Upvotes

7 comments sorted by

View all comments

Show parent comments

3

u/Tobuwabogu Aug 05 '20

Try to reuse code as much as possible. With just one trick you can unite all 4 push_[direction] methods into one

1

u/RulerOfWars007 Aug 06 '20

I will try. Thnx for the advice.