A lazy terminal implementation of 2048.
TODO
curses
(included with Python 3.5 on *nix systems)
Because curses
is not included on Windows distributions of Python, Windows
users may want to run ten
in Cygwin (or maybe bash for Windows
would work). Alternatively, you can make a go of it with one of the
several curses
implementations available for Windows.
TODO: The following assumes it's installed with setuptools/pip:
Once installed, run ten
.
- Ability to actually resize the grid from the command line
- Ability to restart a completed game with
ENTER
- For win and loss messages, replace the logo with
WIN
orLOSS
- Simultaneous head-to-head race modes!
- Race: Both have the same seed for their random tiles. Who can finish first?
- Battle: You only get a new tile when you have no available moves or when the other player combines two tiles.
- Doesn't check for losses
Written by Gem Newman. Website | GitHub | Twitter
This work is licensed under Creative Commons BY-SA 4.0.
Remember: GitHub is not my CV.