Which terminal (command-line) games come preinstalled/prepackaged with Ubuntu?

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:

  1. The user of my program will have to enter their sudo password, which might seem odd or make them leery.
  2. 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.
5

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like