Red Hat Fedora Linux 3 Bible

The X Window System created a great opportunity for games in Fedora and other UNIX systems to become graphical based rather than character based. So, instead of having little character symbols representing robots and arrows, the games could actually show pictures of little robots and arrows.

A lot of diverting games come with Fedora and run in X. Unless otherwise noted, all of the X games described in this section are free. Also, the GNOME and KDE environments that come on the DVD (described in Chapter 3) each has a set of games associated with it.

GNOME games

The GNOME games consist of some old card games and a bunch of games that look suspiciously like games you would find on Windows systems. If you are afraid of losing your favorite desktop diversion (such as Solitaire, FreeCell, and Minesweeper) when you leave Windows, have no fear. You can find many of them under GNOME games.

Table 7-1 lists the games available by selecting Games from the red hat menu. In this release, many KDE games (shown in Table 7-2) are also on this menu.

Table 7-1: GNOME Games

Game

Description

AisleRiot (solitaire)

Lets you select from among 28 different solitaire card games.

Ataxx

Board game where you flip over circles to consume enemy pieces.

Blackjack

The popular card game where you try to get to 21.

BZFlag

A 3-D multi-player tank game you can play on the Internet.

Chess

Gnuchess game in X. (Runs the xboard and gnuchess commands.)

Five or More

Form lines to remove colored balls from the board.

Four-In-A-Row

Drop balls to beat the game at making four in a row.

FreeCell Solitaire

A popular solitaire card game.

Freeciv (Isometric tileset)

In this strategy game, you try to lead your civilization to extinguish all others. (Uses Isometric tile set to represent cities, oceans, and other terrain.)

Freeciv Server (new game)

Server program needed to play Freeciv.

Iagno

Flip black and white chips to maneuver past the opponent.

Klotski

Move pieces around to allow one piece to escape.

Maelstrom

Navigate a spaceship through an asteroid field.

Mahjongg

Classic Asian tile game.

Mines

Minesweeper clone. Click on safe spaces and avoid the bombs.

Nibbles

Steer a worm around the screen while avoiding walls.

Potato Guy

Build your own potato head face.

Robots

Later version of Gnobots, which includes movable junk heaps.

Same GNOME

Eliminate clusters of balls for high score.

Stones

Move around a cave, collect diamonds, and avoid rocks.

Tali

Yahtzee clone. Roll dice to fill in categories.

Tetravex

A clone of Tetravex from the GNOME project. Move blocks so that numbers on each side align.

Tux Racer

Steer a penguin as he races down a hill on his belly.

KDE games

If you install KDE, there are a bunch of games in the kdegames package. If you did not install the KDE desktop, you can install the kdegames package separately from the DVD that accompanies this book. To see the KDE games (along with some GNOME games) on the red hat menu, select Games, then choose the game you want. The games available in KDE are listed by category in Table 7-2.

Table 7-2: Games for the KDE Desktop

Game

Description

Arcade Games

KAsteroids

Destroy asteroids in the classic arcade game.

KBounce

Add walls to block in bouncing balls.

KFoul Eggs

Squish eggs in this Tetris-like game.

Klickety

Click color groups to erase blocks in this adaptation of Clickomania.

Kolf

Play a round of virtual golf.

KSirtet

Tetris clone. Try to fill in lines of blocks as they drop down.

KSmileTris

Tetris with smiley faces.

KSnakeRace

Race your snake around a maze.

KSpaceDuel

Fire at another spaceship as you spin around a planet.

KTron

Snake-style race game.

Boardgames

Atlantik

Play this Monopoly-like game against other players on the network.

KBackgammon

Online version of backgammon.

KBattleship

Sink the opponent’s battleship in this online version of the board game.

KBlackBox

Find hidden balls by shooting rays.

Kenolaba

Move game pieces to push opponents’ pieces off the board.

KMahjongg

Classic oriental tile game.

KReversi

Flip game pieces to outmaneuver the opponent.

Shisen-Sho

Tile game similar to Mahjongg. Very addicting.

Kwin4

Drop colored pieces to get four pieces in a row.

Cardgames

Patience

Choose from nine different solitaire card games.

KPoker

Video poker clone. Play five-card draw, choosing which cards to hold and which to throw.

Lieutenant Skat

Play the card game Skat.

Tactics and Strategy

KJumping Cube

Click squares to increase numbers and take over adjacent squares.

KAtomic

Move pieces to create different chemical compounds.

KGoldrunner

Strategy puzzle game.

Konquest

Expand your interstellar empire in this multiplayer game.

Kolor Lines

Move marbles to form five-in-a-row and score points.

KMines

Minesweeper clone. Click safe spaces and avoid the bombs.

KSokoban

The Japanese warehouse keeper game.

SameGame

Erase game pieces to score points.

Note 

There is an engaging new game for the KDE desktop. The title “Boson” is a real-time strategy game with a “Command and Conquer” feel, and in fact is a reasonable clone of the game graphically. It is available for download at http://www.boson.eu.org.

The games on the KDE menu range from diverting to quite challenging. If you are used to playing games in Windows, KMines and Patience will seem like old favorites. KAsteroids and KPoker are good for the mindless game category. For a mental challenge (it’s harder than it looks), try KSokoban. For a challenging multiuser game on the GNOME menu, try Freeciv. For chess enthusiasts, there is Chess (xboard version of gnuchess).

The following sections describe a couple of the more interesting games that come with Fedora. First is the xboard game and some related chess programs. Next is a description of Freeciv.

Chess games

Chess was one of the first games played on computer systems. While the game hasn’t changed over the years, the way it’s played on computers has. The set of chess programs that come with Fedora let you play against the computer (in text or graphical modes), have the computer play against itself, or replay stored chess games. You can even play chess against other users on the Internet using Internet Chess Servers (ICS).

The xboard program is an X-based chess game that provides a graphical interface for gnuchess. GNU Chess (represented by the gnuchess package) describes itself as a communal chess program. It has had many contributors, and it seeks to advance a "more open and friendly environment of sharing" among the chess community. With xboard, you can move graphical pieces with your mouse. To play against the computer, click Games ® Chess from the Red Hat menu, then start by just moving a piece with your mouse. While in the xboard window, select Mode ® Two Machines to have the computer play itself. Select File ® Load Game to load a game in Portable Game Notation (PGN). Figure 7-1 shows the xboard window with a "Two Machines" game in progress.

Figure 7-1: In the xboard window, you can set xgame to either play against the computer or to replay saved games.

You can use xboard to play online against others by connecting an xboard session to an Internet Chess Server (ICS). To start xboard as an interface to an ICS, type the following command line:

$ xboard -ics -icshost name

In this example, name should be replaced by the name of the ICS host (see the list of hosts below). In ICS mode, you can just watch games, play against other users, or replay games that have finished. The ICS host acts as a gathering place for enthusiasts who want to play chess against others on the Internet, watch games, participate in tournaments, or just meet chess people. Here is an example of starting an ICS session at chess.net from a Terminal window:

$ xboard -ics -icshost chess.net Please wait. Press return to enter chess.net as "guest 141": chess% <Enter>

After pressing Enter, you are logged into the chess server as a guest. The xboard window opens on your screen. Keep an eye on the Terminal window where you started the session. Someone will probably challenge you to a game within a few moments. For example, if a challenge ended with "Type '/accept 102' to accept the sought challenge," you would type:

chess% /accept 102

You can begin playing. To learn more about how to play, visit http://chess.net/help. Select the Beginners Manual to start. Other chess servers you can try include the Internet Chess Club (ICC) at chessclub.com or Free Internet Chess Server at freechess.org.

Freeciv

With Freeciv, you create a civilization that challenges competing civilizations for world dominance. Freeciv is a free clone of the popular Civilization game series from Atari. A commercial port of Civilization Call to Power to Linux was created a few years ago by Loki Games (described later in this chapter).

The version of Freeciv that comes with Fedora contains both client software (to play the game) and server software (to connect players together). You can connect to your server and try the game yourself or (with a network connection) play against up to 14 other players on the Internet.

You can start Freeciv from the Red Hat menu (as a non-root user) by clicking Games ® FreeCiv (Isometric tile set). If Freeciv doesn’t start, try starting it from a Terminal window by typing:

$ civ &

Figure 7-2 shows the two windows that appear when you start Freeciv. The Connect to Freeciv Server window contains your user name, host name, and port number. The Freeciv window is where you play the game.

Figure 7-2: Play Freeciv to build civilizations and compete against others.

Note 

If Freeciv won’t start, one reason may be because you are logged in as root. You must be logged in as a regular user to run the civ command.

Starting Freeciv

You can play a few games by yourself, if you like, to get to know the game before you play against others on the network. The following procedure describes how to start your first practice Freeciv game.

  1. Start Freeciv from the Red Hat menu (Games ® FreeCiv, or type civ&).The Freeciv windows appear, as shown in Figure 7-2.

  2. From a Terminal window, start the Freeciv server by typing:

    $ civserver This is the server for Freeciv version 1.13.0 You can learn a lot about Freeciv at http://www.freeciv.org/ 2: Now accepting new client connections. For introductory help, type 'help'. >

  3. Click Connect in the Connect to Freeciv Server window.

  4. At the server prompt, type the following:

    > start Starting game. 2: Loading rulesets >

    A What Nation Will You Be? window appears on the client, as shown in Figure 7-3.

    Figure 7-3: Choose a nation to begin Freeciv.

  5. After you start Freeciv from the server prompt, choose a nation, the name of a leader, your gender, and the style of the city, and then click OK. At this point, you are ready to return to the Freeciv window.

Beginning with Freeciv

Check out the Freeciv window. Here are things you should know before you start the game. (You can find more help at the Freeciv site: www.freeciv.org.)

The Unit box shows information about your current unit. You begin with two Settlers units and one Explorer unit.

Building your civilization

Start building your civilization. Here are things to try, as suggested by the Freeciv manual:

Exploring your world

To begin exploring, move the Settler.

  1. Using the numeric keypad, press the 9 key three times to begin exploring. You can move the explorer up to three times per turn. You begin to see more of the world.

  2. When the next unit (the Settler) begins blinking, move it one square in another direction. Click Turn Done. Information for the city will be updated.

  3. Click the City to see the city window. Notice that information about the city has been updated. In particular, you should see food storage increase. Close the city window.

  4. Continue exploring and build a road. With the explorer flashing, use the numeric keypad to move it another three sections. When the Settler begins blinking, press r to build a road. A small R appears on the square to remind you that the Settler is busy building a road. Click Turn Done.

Using more controls and actions

Now that you have some understanding of the controls and actions, the game can begin taking a lot of different directions. Here are a few things that might happen next and things you can do:

You should be familiar with some of the actions of Freeciv at this point. To learn some basic strategies for playing the game, choose Help ® Help Playing.

Категории