📅 February 12, 2024
Remember the game 2048? Let’s play it in a terminal!
Here is a fun variation on the addictive “How far can you go?” number combining puzzle game — but from a bash script.
Installation
Bash2048 is not in the Ubuntu repository. Download it from https://github.com/JosefZIla/bash2048, and place it anywhere you like for easy access. All you need is the file bash2048.sh.
Run It!
Just run it like any other script.
bash bash2048.sh
Or, if you have the execute permission set on the file,
./bash2048.sh
Gameplay
The gameplay and controls are just like the original…but in a bash shell. The arrow keys are all you need to combine numbers in hopes of reaching the magical 2048. (These are powers of 2, so this is good practice in learning the progression from 2.)
To reload a saved game, use the -r option.
bash bash2048.sh -r
Have fun!