I'm writing a terminal-based utility that will be used over ssh. I'd like to plant an easter egg that will open a game to play if they send it certain options. I need the game to be available by default on Ubuntu 18.04 or later, without installation, and in the terminal so it works over ssh. Which terminal games, if any, come pre-installed?
Note: an alternative to using a pre-installed game would be to have my program call sudo apt update && sudo apt install some_game. The problem with this, however, is two-fold:
- The user of my program will have to enter their sudo password, which might seem odd or make them leery.
- Security: I'd prefer not to have to install programs that aren't required on the system. Let's say it's a server, for instance. I'm not sure how secure all programs are which can be installed with
sudo apt install.
1 Answer
There isn't any command line games installed in Ubuntu by default.
So the best option would be (as Cocomac suggested), to include your own CLI game in your application - this could very well be something rather simple written in Bash or Python.
For instance, here is an example of a game written in Bash: Housenka
Another example: Tutorial to create Minesweeper
1