Did you know that you can play Tetris on your Mac? Of course you did, you can play lots of games. But did you know that there’s already a Tetris game built in? In fact, if you know your way around Emacs, you can play a whole bunch of awesome retro games like pong and snake. Read on to see how.
Are There Really Hidden Games on My Mac?
Yep. Tucked deep into the recesses of your Mac’s darkest corners, there’s a whole list of delightfully retro applications specifically written for a text editor called Emacs. In this tutorial, I’ll walk you through the step by step process of getting to the screen where you launch the games and show you the hidden directory where you can see a list of your options.
Step 1: Open Terminal
The first thing that you need to do is open Terminal, which is located inside of the “Utilities” folder inside of your “Applications” folder.
Terminal is located inside of your Utilities folder
I know this is scary, but don’t worry. You don’t need to be a Terminal wizard to follow this tutorial. Even if it’s your first time opening Terminal, you’ll be just fine.
That being said, always take caution when opening Terminal. Never type in anything if you aren’t exactly sure what’s going to happen. This app has a crazy amount of control over how your Mac operates and you can seriously screw stuff up if you’re not careful.
Step 2: Launch Emacs
Once you’re inside of Terminal, you’ll need to enable Emacs. No, I’m not talking about the big white Macs that Apple used to sell, it’s a special text editor that’s built on the concept of extensibility.
It’s all super technical, and you can read about it here, but for now all you need to know is that you need to enter in this command and hit Return:
That’s it! You just entered a command into Terminal. That wasn’t so bad, was it?
Type “emacs” and hit Return
Step 3: Launch Tetris
Once you’ve successfully enabled Emacs, your Terminal window will fill up with all kinds of crazy stuff. It should look something like this:
GNU Emacs in Terminal
Once you see this, hit the Escape key. This should bring up the screen shown below.
Hitting Escape should bring up this screen
After you release the Escape key and see the screen above, hit the “x” key. This should bring up a “M-x” prompt at the bottom left of the screen. To launch the Tetris game, simply type “tetris” here and hit Return.
After you release the Escape button, hit “x”, then type “tetris”
That’s it! This should launch the Tetris game. Now let’s take a look at how to play.
How to Play
The Tetris game here will probably be one of the most basic, bare bones Tetris clones that you will ever play. This thing is super hidden, ugly and difficult to play. When the free online Tetris games are so good, the only real reason to play this one is to chalk up some hardcore nerd points.
Tetris in Terminal
If you’re like me though, that’s more than enough of a reason to bust this out from time to time. As you can see, the playable area is oddly narrow. The score and next block are shown to the right of the main area.
As blocks (aka Tetriminos) fall, use the arrow keys to push them around. To spin a block, use the up key. To instantly drop a block, hit space.
As it turns out, there are quite a few games that can be accessed using the exact same method described above. Follow the same steps, only when you get to the part where you typed in “tetris” try a few other things like “pong” or “snake”.
Pong in Terminal. One player uses the 4 and 6 keys, the other uses the arrows keys.
Snake in Terminal
To see the directory of games that are available for you to play, go to Finder, hit Command-Shift-G and type in the following:
This should bring you to a folder that shows a bunch of different games. Try entering the various names seen here into the M-x prompt from before.
Emacs Games can be found in /usr/share/emacs/22.1/lisp/play
To get you started, here are some game names that I know work:
- solitaire (Not what you think)
- gomoku (sort of like Connect 4)
- dunnet (text based adventure game)
To be honest, several of the games that I came across were just plain confusing. You’re launched into a bizarre screen and forced to figure out what’s going on. Others are not so much games as animation examples or simulations. For instance, try typing in “doctor” and you’ll find yourself in a frustrating conversation with a quirky electronic psychotherapist!
The Doctor game is a simulated psychotherapist
Which Game is Your Favorite?
I’d wager that most Mac users have no idea that these games are hidden away on their computer. The Mac OS has been around for so long that there’s a lot to discover if you know where to look.
Now that you know about these hidden gems, you simply have to go try them. Follow the instructions above, then report back here to let us know which game you liked best.