Nothing is better than a 3D game, but when you haven’t installed a GUI and have a quick need to play for a bit, here are 4 text based Linux games for CLI:
1. Bastet - Tetris clone:

Bastet ("bastard tetris") is an ncurses Tetris clone which is harder than every other tetris released. It is based on a heuristics engine which tries to detect which block you need or don’t need, and then gives you the blocks that you don’t need. For instance, if you usually play by leaving long "canyons" one square wide and then waiting for the long "I" block, you’ll have to wait till eternity before you see it. The heuristics have been worked on for some time and are quite nasty.
Install Bastet on Ubuntu:
sudo apt-get install bastet
2. Ninvaders - Space Invaders Clone:

nInvaders project is a Space Invaders clone for ncurses.
Ever wanted to play space invaders when you can’t find a GUI? Now you can!
Install Ninvaders on Ubuntu:
sudo apt-get install ninvaders
3. Moon-buggy - drive on the moon:

Moon-buggy is a simple character graphics game, where you drive some kind of car across the moon’s surface. Unfortunately there are dangerous craters there. Fortunately your car can jump over them!
Install Moon-buggy on Ubuntu:
sudo apt-get install moon-buggy
4. Greed - a puzzle game:

The strategy game of Greed. Try to eat as much as possible of the board before munching yourself into a corner.
Install Greed on Ubuntu:
sudo apt-get install greed
Hope you enjoy playing these simple, but fun Linux based CLI games. You can play any of these games by entering “/usr/games/xxxxx” with the Xs being the name of the game.
Do you know of any other fun CLI based games for Linux? Let us know in the comments. [via mellowd.co.uk]