zhou-jia-ming / mini2048

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#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:

If you can read Chinese you may find a doc in with more details here: http://www.cnblogs.com/frombeijingwithlove/p/4111016.html

======== Actually the game module was for a verification frame of a 2048 AI project. If I get enough free time I may finish it based on this.

About

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

License:MIT License


Languages

Language:Python 100.0%