-->
Previous Table of Contents Next


Chapter 61
Games

by Ed Treijs and Tim Parker

In This Chapter
•   Which games have you installed?
•   X Games
•   Character-based games

A variety of games come with most Linux CD-ROMs and there are a lot more available through FTP sites and CD software collections. The available games can be roughly divided between those that require X to run and those that will run in plain text mode (on a character terminal). In this chapter, you will learn about both types of games. The chapter provides a reasonably complete list of both X- and character-based games.

Which Games Have You Installed?

The games listed in this chapter come in several different installation packages, so you may not have one or more of these games on your system. For instance, the graphical versions of tetris, gnuchess, and xfractint are each installed separately.

If one of the listed games sounds intriguing, you may want to install it if you haven’t done so already.

X Games

The following games all require X to run. You can find most of the X games in a number of directories, depending on the version of Linux you use. Typical installation directories for games are

  /var/lib/games
  /usr/games
  /usr/lib/games
  /usr/local/games
  /usr/share/games

In many cases, you will have all these directories installed with games in each.

Because X is a graphical, windowing environment, you might guess that X games are graphically oriented. You would be right! Almost all of the following games use color and bitmapped graphics. Often, you can specify the palette of colors the game will use.

However, you should keep in mind the following:

  Arcade games and home video game systems have dedicated hardware that is designed specifically for running games. X Window is a generic environment. Even today’s powerful personal computers can’t match the speed and smoothness of movement of a game machine.
  Games work your hardware and operating system software harder than any other application. For best performance, games are often programmed to run “close to the edge” and do various software and hardware tricks. You might find that one or more of these games crash your system or have strange side effects.
  The X games that come with Linux are personal efforts. The individuals who wrote the games and allow free distribution appreciate suggestions and help in further development. Don’t hold these games to commercial standards—they are not commercial products.
  The Slackware version on the CD-ROM lets you install two types of games. The “Y” set contains the BSD games collection and the other set “XAP” contains the games with X Window support. Install both versions and then remove the games you don’t like.


Note:  
It’s tempting to put new games in /usr/games, though the most common area for user-installed games is in /usr/local/games. The /usr/games directory is usually reserved for games that come with the system.

Following is a discussion of the X games you should find on your system. Keep in mind that installation differences might mean that you have more or fewer games.

Games in the xdm Root Menu

If you use the X display manager xdm, the xdm Root menu (usually accessed by holding the right mouse button while the cursor is in the root screen area) has a Games submenu choice. From the Games menu, you can then choose a Demo/Gadgets submenu. If you use a different window manager, such as Motif, your menus will be correspondingly different. Games available through the menu depend on the version of Linux, too. Here’s a list of some Linux X-based games and a description of them.

Spider (Small and Large)

This is double-deck solitaire. There is no difference in the play of Spider (small) and Spider (large). The difference is that the small Spider game uses smaller cards and therefore fits into a smaller window than the large Spider game.

To see this game’s man page, type man spider.

To start this game, type spider in a command-line window.

This game requires a fair bit of thought, planning, and skill. The aim is to arrange cards of the same suit in descending order. You can also, however, have cards of different suits arranged in descending order. Sometimes this can help you immediately, but hinder you in the long run! Note that if you do have two or more consecutive cards of the same suit, those cards will move as a group. Spider is challenging; don’t try to play it just to pass the time!

Puzzle

This is a superior version of the game—usually played at a child’s party—in which you push around 15 numbered tiles on a 16×16 grid, trying to get the numbers in order.

To see this game’s man page, type man puzzle.

To start this game, type Puzzle in a command-line window.

The reason the X version of Puzzle is superior is because the pieces move very smoothly. Let’s face it, the party favor plastic versions kept jamming and sticking. This is a vast improvement.

If you click on the left box, the game gives you a random starting position. Click on the right box and watch the game solve itself! (Try clicYking on the right box when the numbers are already in order.)

GNU Chess

This is a graphical version of GNU Chess that uses the xboard display system.


Warning:  
Running GNU Chess under xboard is very resource-intensive. It may crash your system.

Adding more swap space may correct an agonizingly long response time. Do not worry, it’s not your system—it’s GNU Chess.



Previous Table of Contents Next