Who doesn’t like retro gaming? No honestly, who doesn’t? This might not be the right article for you if you don’t like them, but there is a way to play nice hidden mini games, that come with the terminal text-editor emacs, for everyone else. This collection of games includes remakes of classic games as well as new and unique games. In this short article I’m going to show you how to play them!

[caption id=”attachment_2986” align=”alignnone” width=”1148”]bildschirmfoto-2016-09-15-um-12-54-08 Figure 1: Solitair in emacs[/caption]

Start a game

https://www.youtube.com/watch?v=0YTMLUtkhIE

You can see everything you need to do in the video above. However here are the written instructions:

  1. Open a new terminal window and start the emacs editor by typing emacs.
  2. After emacs loaded up, press the escape key immediately followed by the x key. This will allow you to enter a command:

    [caption id=”attachment_2997” align=”alignnone” width=”1146”]bildschirmfoto-2016-09-15-um-12-58-57 Figure 2: emacs command mode (see the M-x in the bottom left corner)[/caption]

  3. Start any game you want. E.g start tetris by typing in tetris as a command:

    [caption id=”attachment_3000” align=”alignleft” width=”163”]bildschirmfoto-2016-09-15-um-13-00-02 Figure 3: Tetris[/caption]

The controls are quite easy to understand:

The left and right arrow keys move the current block left and or right. Up and down rotates a block.

If you want a block to fall down faster, press the space key and it will stick to the ground immediately.

I really like the way these games are made. They consist entirely of characters that are displayed in the text editor, which makes me really happy on so many levels. Just reminds me of the good old days.

List of games

There are a lot of games and easter eggs built in, like tetris, pong, snake, a text based adventure game, a psychotherapist (yes I’m not kidding). However, if you want to see what games are available, there is an official list of built in games on the emacs wiki. You can even install 3rd party games, refer to the wiki article, if you want to know how.

And who said you can’t play games on a unix system? Enjoy!

comment-banner