Infrastructure // PC & Servers
04:46 AM
Core System Testing: How to Achieve Success
Oct 06, 2016
Property and Casualty Insurers have been investing in modernizing their core systems to provide fl ...Read More>>

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 .

2 of 2
Comment  | 
Print  | 
More Insights
Newest First  |  Oldest First  |  Threaded View
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
Top IT Trends to Watch in Financial Services
IT pros at banks, investment houses, insurance companies, and other financial services organizations are focused on a range of issues, from peer-to-peer lending to cybersecurity to performance, agility, and compliance. It all matters.
Twitter Feed
InformationWeek Radio
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.