A way to play the famous 2048 game from right within your terminal.
I don't own anything to do with this game; that's Gabriele Cirulli. This is just a reworking.
![image](https://private-user-images.githubusercontent.com/58304039/258148711-9b9737ff-c661-40b6-b504-185aabd7ce75.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTY4NDksIm5iZiI6MTczOTMxNjU0OSwicGF0aCI6Ii81ODMwNDAzOS8yNTgxNDg3MTEtOWI5NzM3ZmYtYzY2MS00MGI2LWI1MDQtMTg1YWFiZDdjZTc1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIzMjkwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM3ZTRlMGU3OTc3Zjg3MTNhYTIxYmU4YTUyZDRkZTU0NjM3YTUyODY3ZmEzNzE1YzRjOGZlNWM2MjA2ZDI1YzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.zF8kSdKi2we4bZpIHcORMBhiQYSCv9mARlkV-oT3RV4)
There are two steps to installing this command:
- Clone this repo on your machine.
- Run the
./bin/build
script and follow the instructions.
NB: The executable is very slow when loading, but fast to play. I'll probably come back to speed up loading in the future.
For ease of distribution, the ./bin/build
script will use PyInstaller to generate an executable specific to your machine.
The steps performed in ./bin/build
are fairly simple - it will:
- Create a disposable virtual env.
- Activate the virtual env and install dependencies.
- Run
pyinstaller
inside the virtual env to create the executable. - Clean up.
To contribute, you can get set up by:
- Cloning this repo.
- Creating a virtual environment (e.g.
python3 -m venv .venv
). - Installing the dev dependencies:
pip install -r requirements_dev.txt
.
TBC.