Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datamine/2048
2048 for the comand line.
https://github.com/datamine/2048
Last synced: 7 days ago
JSON representation
2048 for the comand line.
- Host: GitHub
- URL: https://github.com/datamine/2048
- Owner: Datamine
- Created: 2014-11-26T16:57:59.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-09T08:18:04.000Z (about 8 years ago)
- Last Synced: 2024-12-14T07:24:00.972Z (13 days ago)
- Language: Python
- Size: 24.4 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 2048 for the Command-Line
This is a command-line version of [2048](http://gabrielecirulli.github.io/2048/).
![screenshot](http://johnloeber.com/images/gamescreenshot.png)
Try to get to 2048. On every turn, a new number, either 2 or 4, spawns. It is marked in bold.
If you're a vim-user, then you can also use `h, j, k, l` instead of the arrow keys.## Details
- After cloning this repo, `cd` into it in your terminal, and type `python game2048.py` to run it.
- This is written in Python 2.7 using standard libraries only.
- The game tries to save your top score in a file in your home directory: `~/.2048.txt`.