📄 976-979.html
字号:
<HTML>
<HEAD>
<TITLE>Linux Unleashed, Third Edition:Games</TITLE>
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!--ISBN=0672313723//-->
<!--TITLE=Linux Unleashed, Third Edition//-->
<!--AUTHOR=Tim Parker//-->
<!--PUBLISHER=Macmillan Computer Publishing//-->
<!--IMPRINT=Sams//-->
<!--CHAPTER=61//-->
<!--PAGES=976-979//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="974-976.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="979-984.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H4 ALIGN="LEFT"><A NAME="Heading8"></A><FONT COLOR="#000077">Card Games</FONT></H4>
<P>Because of the lack of graphics, the following games are not as successful as the character-based word games.
</P>
<P><FONT SIZE="+1"><B>Canfield</B></FONT></P>
<P>Type <TT><B>canfield</B></TT> at the command prompt. This is a version of solitaire. A man page is available by typing <TT><B>man canfield</B></TT>. This game does not have the time-wasting potential of graphics and mouse-based solitaire games.</P>
<P><FONT SIZE="+1"><B>Cribbage</B></FONT></P>
<P>Type <TT><B>cribbage</B></TT> at the command prompt. If you’re a cribbage fan, this game is for you. A man page is available by typing <TT><B>man cribbage</B></TT>.</P>
<P><FONT SIZE="+1"><B>Go Fish</B></FONT></P>
<P>Type <TT><B>fish</B></TT> at the command prompt. It’s you against the computer at Go Fish. A man page is available by typing <TT><B>man fish</B></TT>. One confusing aspect is that sometimes several actions are displayed all together on the screen (for instance, you have to go fish, the computer has to go fish, and it’s back to you, all in one block).</P>
<H4 ALIGN="LEFT"><A NAME="Heading9"></A><FONT COLOR="#000077">Board Games</FONT></H4>
<P>These are character-based versions of board games. The play quality is variable; backgammon is probably the best of the lot.
</P>
<P><FONT SIZE="+1"><B>Backgammon</B></FONT></P>
<P>Type <TT><B>backgammon</B></TT> at the command prompt; or, for an easy-to-follow tutorial on how to play backgammon, type <TT><B>teachgammon</B></TT>. These games don’t suffer from a lack of graphics, but the lack of a pointing device such as a mouse means that specifying your moves is a cumbersome task, requiring entries such as <TT>8-12,4-5</TT>. Typing <TT><B>?</B></TT> at the game prompt gives you help on entering your moves.</P>
<P>Typing <TT><B>man backgammon</B></TT> gives you the manual entry for both Backgammon and Teachgammon.</P>
<P><FONT SIZE="+1"><B>Chess</B></FONT></P>
<P>Several chess and chess-related programs come in the <TT>gnuchess</TT> package. Type <TT><B>gnuchess</B></TT> at the prompt to play chess against the computer. There is an analysis program, <TT>gnuan</TT>. The game utility prints the chessboard position to a PostScript printer or file.</P>
<P>Enter your moves using standard algebraic notation—for instance, e2-4.</P>
<P>This is an elaborate package; you should start by reading the man page.</P>
<P><FONT SIZE="+1"><B>Mille Miglia</B></FONT></P>
<P>Type <TT><B>mille</B></TT> at the command prompt. This is the Linux version of a Parker Brothers racing game. You should read the man page before starting because the game’s commands are not very intuitive. To see the man page, type <TT><B>man mille</B></TT>.</P>
<P><FONT SIZE="+1"><B>Monopoly</B></FONT></P>
<P>Type <TT><B>monop</B></TT> at the command prompt. This is a character-based version of the Parker Brothers game Monopoly. The computer does not actually play; it simply keeps track of who owns what and how much money each player has. You can play by yourself, but it’s pretty obvious that you will, eventually, win! Unfortunately, the board is not displayed in any form, making it quite difficult to keep track of what’s happening. This is an interesting effort, but the play is poor. A man page is available.</P>
<H4 ALIGN="LEFT"><A NAME="Heading10"></A><FONT COLOR="#000077">Simulations</FONT></H4>
<P>The following games let you try your hand at being in charge. They are open-ended in that each game is different and does not follow a canned plot. They combine character graphics such as a radar display with text readouts and text-based commands.
</P>
<P><FONT SIZE="+1"><B>Air Traffic Control</B></FONT></P>
<P>Type <TT><B>atc</B></TT> at the command prompt. Type <TT><B>man atc</B></TT> and read the man page first; otherwise, you will be responsible for one or more air tragedies! This game runs in real time. A good supply of caffeine will probably help you do well.</P>
<P><FONT SIZE="+1"><B>Sail</B></FONT></P>
<P>Type <TT><B>sail</B></TT> at the command prompt. You have a choice of over 20 scenarios, mainly historical battles involving sailing ships. You are the captain and determine what course to sail and which weapons to use. A man page is available by typing <TT><B>man sail</B></TT>; it’s worth reading beforehand because some commands are obscure or confusing.</P>
<P><FONT SIZE="+1"><B>Trek</B></FONT></P>
<P>Type <TT><B>trek</B></TT> at the command prompt. You can “go where no one has gone before,” hunt (and be hunted by) Klingons, and so on. A man page is available by typing <TT><B>man trek</B></TT>; read it before playing to avoid being a disgrace to the Federation.</P>
<H4 ALIGN="LEFT"><A NAME="Heading11"></A><FONT COLOR="#000077">”Video” Games</FONT></H4>
<P>The following games all rely on a full-screen display, although all graphics are assembled from the standard character set.
</P>
<P><FONT SIZE="+1"><B>Robots</B></FONT></P>
<P>Type <TT><B>robots</B></TT> at the command prompt. Robots on the screen pursue you; your only hope is to make two robots collide, at which point the robots explode. The resulting junk heap destroys any robots that run into it. You move about the screen using the <TT>hjkl</TT> keys, as used by the <TT>vi</TT> editor (diagonal movement is allowed, using <TT>yubn</TT>). Moves are simultaneous: each time you move, so do the robots. Sometimes, though, you have to teleport to get out of an impossible situation. You die if a robot touches you; otherwise, after clearing the screen, you go on to a bigger and better wave of robots. A man page is available by typing <TT><B>man robots</B></TT>.</P>
<P>Some Linux distributions may include a version of Robots that has been hacked or modified so that you can’t make a misstep that brings you in contact with a robot (thus leading to your demise). This takes away from the challenge of the game.</P>
<P><FONT SIZE="+1"><B>Snake</B></FONT></P>
<P>Type <TT><B>snake</B></TT> at the command prompt. Use the <TT>hjkl</TT> keys to move around, picking up money (the <TT>$</TT>) while avoiding the snake (made up, appropriately, of <TT>s</TT> characters). The snake gets hungrier as you get richer. Escape the room by running to the <TT>#</TT> character or be eaten by the snake! You can also type <TT><B>w</B></TT> in an emergency to warp to a random location. A man page is available by typing <TT><B>man snake</B></TT>.</P>
<P><FONT SIZE="+1"><B>Tetris</B></FONT></P>
<P>Type <TT><B>tetris</B></TT> at the command prompt. The Tetris play screen is drawn with clever use of various characters. Ironically, although it does not look anywhere near as professional as Xtetris or other full-graphics versions, it plays very well—especially if you’re used to the arcade version of Tetris. The movement keys consist of <TT>,</TT> to move left, <TT>/</TT> to move right, and <TT>.</TT> to rotate (counterclockwise!). The spacebar drops the piece. You can vary the control keys by using options with the <TT>tetris</TT> command. See the man page (type <TT><B>man tetris</B></TT>) for details.</P>
<P><FONT SIZE="+1"><B>Worm</B></FONT></P>
<P>Type <TT><B>worm</B></TT> at the command prompt. You are a worm, moving about the screen and eating numbers. As you eat the numbers, you grow in length. Do not run into yourself or into the wall! How long can you get before you (inevitably) run into something? Note that you still slowly crawl forward, even if you don’t enter a move command.</P>
<P>A man page is available by typing <TT><B>man worm</B></TT>.</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="974-976.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="979-984.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -