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

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

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest