Skip to content
forked from paulpage/py2048

The game 2048 made using python and pygame.

License

Notifications You must be signed in to change notification settings

PistolRcks/py2048

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py2048

A cross-platform clone of 2048 using Python 2.7 and pygame.

Dependencies

LINUX

You may not have to install Python, as it is installed by default with most Linux distros. However, if for some reason you do not have Python 2.7, package names are included below along with pygame.

Arch: sudo pacman -Sy python2 python2-pygame

Debian/Ubuntu: sudo apt-get install python2.7 python-pygame

Fedora: sudo yum install python pygame

WINDOWS

Python 2.7, pygame (direct download)

NOTE: Since pygame only comes in 32-bit, the linked version of Python is also 32-bit. A 64-bit installation of Python will not work with pygame.

MAC OS X

Neither of the devs have a Mac and can attest to this, but theoretically since one could install Python 2.7 and pygame (direct download) on the Mac, it should run. The game does not include any OS-specific code. The same thing applies to Mac as it does to Windows; you need the 32-bit version of Python, as pygame only comes in 32-bit. One could also download dependencies via MacPorts.

The download page for Python 2.7.7 is here just in case I linked to the wrong one.

Extra Feature(s)

You can change the size of the playfield by inputting two numbers as arguments on the command line. This is optional. However, both must be present to affect the size.

USAGE:

python main.py [board_width] [board_height]

Press A to initiate "Auto Mode!" Watch as the game plays itself for you!

About

The game 2048 made using python and pygame.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%