Character Based Games
There aren't many character-based games delivered with the basic Red Hat Linux installation. If you are interested in trying some of the legacy UNIX games, some of which were created many years ago, you can install the bsd-games package (which is available from Red Hat FTP sites).
The games that come in the bsd-games package include simple card games, shooting games, and adventure games. As previously noted, games are stored in the /usr/games directory by default, so you may want to add that directory to your PATH.
Some of the games have score files, which should be created as writable by everyone (if multiple people use your system). Or you can make those games that write to score files into setgid games, and then make the file permissions 664. The owner and group of each game command is root by default. Only one game (Hunt) allows multiple players and has a daemon program (in /usr/sbin) for coordinating game play.
Cross-Reference See Chapter 3 for information on adding a directory to your PATH and setting file permissions.
If you want to control who runs these games and when the games are run, you can use the dm command (Dungeon Master) for controlling access to games. You can add controlled games into a hidden directory (/usr/games/dm), then create a configuration file (/etc/dm.conf) to determine when each controlled game can be run.
Table 7-3 lists all of the games available in the bsd-games package. For a simple game, try Fish (/usr/games/fish). If you are adventurous, try Adventure (/usr/games/adventure). Here are a few hints that will help you with Adventure:
Move around the caves in Adventure by asking for an adjacent room or by naming a direction (N, S, E, SW, NE, etc.).
As you explore the caves, draw a map as you go — it helps you return to places later.
Take valuable things and bring them back to the building.
Typing xyzzy and plugh sometimes transports you to a remote location.
|
Game |
Description |
Game |
Description |
|
adventure |
Explore the Colossal caves and find treasures. |
arithmetic |
Answer simple, timed arithmetic questions. |
|
atc |
Air traffic controller game. Direct jets and propeller planes through flight area and airports. |
backgammon |
Backgammon board game. |
|
Banner |
Print large-letter banners on your printer. |
battlestar |
A tropical adventure game. |
|
canfield |
The canfield solitaire game. |
cribbage |
The cribbage board game. |
|
dm |
Dungeon master to regulate |
factor |
Factor numbers. |
|
game playing. | |||
|
fish |
The go fish card game. |
gomoku |
Two-player game to get five in a row. |
|
hunt |
Multiplayer maze game with the object of killing the other players. |
mille |
The Mille Bornes game. |
|
monop |
The Monopoly game for multiple players. |
number |
Converts arabic numbers to words. |
|
phantasia |
Role playing fantasy game for fighting monsters. |
pig |
Reformat input as pig latin. |
|
pom |
Displays the current phase of the moon. |
primes |
Generate prime numbers. |
|
quiz |
Answer questions on selected topics. |
rain |
Displays animated raindrops. |
|
random |
Generate random numbers. |
robots |
Fight evil robots. |
|
sail |
Multiuser fighting ships game. |
snake |
Avoid getting eaten by a snake. |
|
tetris-bsd |
Tetris game. |
trek |
Trekkie space game. |
|
wargames |
No thermonuclear warfare. Not dangerous. |
worm |
A growing worm game. |
|
worms |
Animated worms. |
wump |
Shoot at the wumpus in an underground cave. |
Continue reading here: The xmame Gaming Emulator
Was this article helpful?