Infrastructure // PC & Servers
News
6/28/2011
04:46 AM
50%
50%

How To Play Games In the OS X Terminal

You can actually play simple games in your Mac's Terminal.

In order to keep this fun, I’ve skipped stuff like Cookie1 since that dives deeper into emacs than needed right now. Let's jump right in and check out some of the games you can play in the Terminal.

5x5: Is similar to a blackout game. Move the cursor around the 5x5 grid and hit enter to fill in all the squares.


Animate: Make up a name (for kicks I went with Doug) and see a little animated birthday poem in which letters fly in to form the words.


Doctor: This one is a lot of fun. The computer tries to hold a conversation with you. It's not very good at it, but that makes it all the more enjoyable.


Gomoku: In this game you compete with the computer to place five characters (Xs and Os) in a row.


Hanoi: Watch emacs solve the old stacking puzzle-type game, Tower of Hanoi.


Life: This is just John Conway's cellular automation called Life. You don't do anything but watch the characters multiply until they all die off and all life ceases to exist. Other times, it can go on infinitely.


Pong: Ah, the father of all video games and a classic. The up and down arrow keys control the right paddle, and the up and down arrow keys control the left paddle. Not exactly a useful control scheme unless you have two keyboards or want to play pong against yourself. The good news is that you win either way. The bad news is, you also lose a lot.


Snake: Slither around eating the little dots. Your snake grows longer over time. Try not to crash into a wall or your own tail.


Tetris: Alexey Pajitnov's addictive creation and perhaps the most popular puzzle game of all time. The left and right arrows move shapes left and right, the up and down arrows rotate the shapes and the spacebar forces the shape to drop to the bottom of the screen.


Admittedly, these are just fun time-waters. But it's fun to run them in Terminal and sure as heck makes for a good geek party trick. There are many other games you can find in the Terminal too. Give them a try and see for yourself.

Based in McAllen, TX, Jacob Lopez is a senior editor at BYTE. Follow him @8bitjay and email him with news tips at jacob.lopez@BYTE.com .

Previous
2 of 2
Next
Comment  | 
Print  | 
More Insights
Server Market Splitsville
Server Market Splitsville
Just because the server market's in the doldrums doesn't mean innovation has ceased. Far from it -- server technology is enjoying the biggest renaissance since the dawn of x86 systems. But the primary driver is now service providers, not enterprises.
Register for InformationWeek Newsletters
White Papers
Current Issue
InformationWeek Tech Digest, Dec. 9, 2014
Apps will make or break the tablet as a work device, but don't shortchange critical factors related to hardware, security, peripherals, and integration.
Video
Slideshows
Twitter Feed
InformationWeek Radio
Archived InformationWeek Radio
Join us for a roundup of the top stories on InformationWeek.com for the week of December 14, 2014. Be here for the show and for the incredible Friday Afternoon Conversation that runs beside the program.
Sponsored Live Streaming Video
Everything You've Been Told About Mobility Is Wrong
Attend this video symposium with Sean Wisdom, Global Director of Mobility Solutions, and learn about how you can harness powerful new products to mobilize your business potential.