Play hidden arcade games in emacs

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!

bildschirmfoto-2016-09-15-um-12-54-08
Figure 1: Solitair in emacs

Start a game

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:

    bildschirmfoto-2016-09-15-um-12-58-57
    Figure 2: emacs command mode (see the M-x in the bottom left corner)
  3. Start any game you want. E.g start tetris by typing in tetris as a command:

    bildschirmfoto-2016-09-15-um-13-00-02
    Figure 3: Tetris

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

6 thoughts on “Play hidden arcade games in emacs

  1. I’m really loving the theme/design of your site.
    Do you ever run into any browser compatibility problems? A couple of my blog visitors have complained
    about my website not operating correctly in Explorer but looks great in Safari.
    Do you have any suggestions to help fix this issue?

    Like

    1. Hi!
      Yes, unfortunately our site is not properly displayed on older versions of IE (anything lower than 9). I’d say it’s not that easy to fix such issues because one has to address each browser separately. So it’s basically not worth trying to make the site look like this on very old browsers. I think it’s enough to support IE9+ and comparable browsers like the Firefox/Chrome/Safari versions of that time.

      Like

  2. Hi there! I just wish to give an enormous thumbs up for the nice information you could have here on this post. I shall be coming back to your blog for extra soon.

    Like

Leave your two cents, comment here!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.