Skip to content

njaladan/2048-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

2048 - Python Version

This is a simple port of 2048 to python. The scoring is kept simple, and the game allows you to continue even after the 2048 tile has been reached.

GUI

There's a simple gui in place for the game, but it requires other modules I've since lost access to. However, the key game logic is still in place, and a game is represented as a class with several possible functions and a game state represented by a list of lists.

>  game.__str__()
>  [[2,3,16,2],[4,16,0,0],[64,0,4,0],[2,0,0,0]]

Have fun. I originally built this several years ago as part of an online course on object-oriented programming and data structures.

About

This is a small port of 2048 to python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages