Skip to content

A Python implementation of 2048 with tk GUI

License

Notifications You must be signed in to change notification settings

crogram-pythub/mini2048

This branch is 2 commits ahead of yeyun111/mini2048:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 22, 2023
0368f4c · May 22, 2023

History

13 Commits
May 22, 2023
May 22, 2023
May 22, 2023
Nov 21, 2014
May 22, 2023
May 22, 2023
May 22, 2023
May 22, 2023
Oct 13, 2022
May 22, 2023

Repository files navigation

mini2048

A Python implementation of 2048 with a minimum GUI in 99 Physical LOC

Not Pythonic, PEP8 is not followed. I wrote this code because I'm boring.

Two modules are included:

  1. Game control module. Based on numpy, use a 2d ndarray to store the tile values. It takes input of UP, DOWN, LEFT and RIGHT to step forward.

  2. A minimum GUI based on Tk. The color style is referred to gabrielecirulli/2048.

Screenshot

for Windows

for Mac

If you can read Chinese you may find more details here:

http://www.cnblogs.com/frombeijingwithlove/p/4111016.html

About

A Python implementation of 2048 with tk GUI

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.5%
  • Shell 0.5%