Install the 2048 mathematical game on Ubuntu 22.04 Jammy JellyFish or Ubuntu 20.04 Focal Fossa to take a break from your Terminal commands.
2048 is a simple but complicated puzzle board game in which a single player gets 4×4 tiles. Where the player has to combine or add the random but same digits to achieve the value of 2048 before the board is full. It was developed by Gabriele Cirulli, an Italian developer.
At first glance, the game seems quite basic and easy to play but as you start sliding the tiles to get the number 2048 you will realize, it is not a piece of cake for everyone. Only the mathematical sound person could get the right number to win the game.
The best part is that we can use our Terminal to play it, no need to launch some separate application launcher to play the game.
Steps to install 2048 game on Ubuntu 22.04 or 20.04 Linux
The commands given here can be used for other Linux systems based on Debian or Ubuntu such as Linux Mint, Elementary OS, Zorin OS, POP!_OS, and more…
Update your Ubuntu
As we are going to use the default system repository and APT package manager of Ubuntu, therefore, before that run the system update command once. It installs the latest available updates for the system along with the rebuilding of the APT package index cache.
sudo apt update
Install 2048 on Ubuntu 22.04 or 20.04
Well, the best part of this Text-based mathematical game is we don’t need to add any third-party repository to our system. Just use the APT package manager and run the given command. That will fetch the necessary packages to install the 2048 game on Ubuntu or Debian Linux.
To install for Terminal (Text-based)
sudo apt install 2048
For Gnome GUI support
sudo apt install gnome-2048
Run the Mathematical game
If you have installed the text-based 2028 game, then you can play it directly on your Ubuntu Terminal. For that simply on your command terminal type:
Here is the screenshot
Whereas, if you have installed the Gnome–2048 then either type-
gnome-2048 or go to the Activities link given in Ubuntu’s taskbar and there search for it.
The difference between the two editions of the 2048 game is the first one is text-based, hence even if you have a Linux with a command line interface, you can play it. However, for Gnome 2038 you need a GUI desktop because of the better graphic representation.
How to play the 2048 Math game on Linux
Once you have run the game, what you have to do is, by using the Arrow keys on your keyboard, add similar numbers. For example – 2+2. 4+4, 8+8, etc. until you will not have a value of 2048. However, make sure all your 4×4 tiles of 2048 must not get filled until you receive the target value.
Uninstall 2048 from Ubuntu Linux
If you get bored with this mathematical game and now want to completely remove 2048 from your Ubuntu Linux then here is the command to follow:
sudo apt autoremove --purge 2048
For Gnome one:
sudo apt autoremove --purge gnome-2048
Other similar articles: