📄 974-976.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=974-976//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="972-974.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="976-979.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H4 ALIGN="LEFT"><A NAME="Heading6"></A><FONT COLOR="#000077">Text Adventure Games</FONT></H4>
<P>These games follow the classic text-based formula: the system informs you that “you are in a maze of small twisty passages, all alike” or something similar; you type in your actions as <TT><B>go forward</B></TT>, <TT><B>east</B></TT>, <TT><B>take sword</B></TT>, and so on. If you like solving puzzles, these games will appeal to you. With text-based games, the adventure follows a defined path, and your responses are usually limited.</P>
<P>The following example is the start of the text-based game Battlestar, which you will learn about in the next section. Your commands are typed at the <TT>>-:</TT> prompt:</P>
<!-- CODE //-->
<PRE>
Version 4.2, fall 1984.
First Adventure game written by His Lordship, the honorable
Admiral D.W. Riggle
This is a luxurious stateroom.
The floor is carpeted with a soft animal fur and the great wooden
furniture is inlaid with strips of platinum and gold. Electronic
equipment built into the walls and ceiling is flashing wildly. The floor
shudders and the sounds of dull explosions rumble though the room. From a
window in the wall ahead comes a view of darkest space. There is a small
adjoining room behind you, and a doorway right.
>-: <TT><B>right</B></TT>
These are the executive suites of the battlestar.
Luxurious staterooms carpeted with crushed velvet and adorned with beaten
gold open onto this parlor. A wide staircase with ivory banisters leads
up or down. This parlor leads into a hallway left. The bridal suite is
right. Other rooms lie ahead and behind you.
&#gt;-: <TT><B>up</B></TT>
You are at the entrance to the dining hall.
A wide staircase with ebony banisters leads down here.
The dining hall is to the ahead.
>-: <TT><B>bye</B></TT>
Your rating was novice.
</PRE>
<!-- END CODE //-->
<P><FONT SIZE="+1"><B>Battlestar</B></FONT></P>
<P>Type <TT><B>battlestar</B></TT> at the command prompt. A sample session is shown in the code in the previous section. A man page is available by typing <TT><B>man battlestar</B></TT>.</P>
<P><FONT SIZE="+1"><B>Dungeon</B></FONT></P>
<P>Type <TT><B>dungeon</B></TT> at the command prompt. Typing <TT><B>help</B></TT> at the game prompt gives you useful information. You start out-of-doors and must find the dungeon entrance. There is no man page for Dungeon.</P>
<P><FONT SIZE="+1"><B>Paranoia</B></FONT></P>
<P>Type <TT><B>paranoia</B></TT> at the command prompt. In this humorous game, you play a secret agent on a desperate mission. Unlike most text-based adventure games, Paranoia lets you choose your actions from a menu. This is useful if you hate having to find a command that the game will understand. There is no man page for <TT>paranoia</TT>.</P>
<P><FONT SIZE="+1"><B>Wump</B></FONT></P>
<P>Type <TT><B>wump</B></TT> at the command prompt. You are out hunting the Wumpus, armed with some custom arrows and relying on your wit and sense of smell. When you start the game, you are given the choice of seeing the instructions.</P>
<P>Type <TT><B>man wumpus</B></TT> to see the man page.</P>
<H4 ALIGN="LEFT"><A NAME="Heading7"></A><FONT COLOR="#000077">Word Games</FONT></H4>
<P>The following two games are versions of popular word-finding and word-guessing games.
</P>
<P><FONT SIZE="+1"><B>Boggle</B></FONT></P>
<P>Type <TT><B>bog</B></TT> at the command prompt. This is a version of the Parker Brothers game Boggle Deluxe. You are given a 5×5 grid of letters. In the allotted time of three minutes, you type in words made up from the given letters. By default, you must use letters that adjoin horizontally, vertically, and diagonally without reusing any letters. Plurals and different tenses count as different words—for instance, “use,” “uses,” “used,” and “user” are all allowed in your word list. This follows the official Boggle rules. You can change these defaults, if you want.</P>
<P>At the end, the computer displays the list of words which it found. You can never beat the computer because it only allows you to type in real words. You will discover that the Boggle dictionary has some odd omissions; this can be annoying, but it isn’t very serious.</P>
<P>This game works well without color graphics, although the small size of the letter grid makes your eyes blur after a while.</P>
<P>A man page is available by typing <TT><B>man bog</B></TT>.</P>
<P><FONT SIZE="+1"><B>Hangman</B></FONT></P>
<P>Type <TT><B>hangman</B></TT> at the command prompt. You won’t miss the color graphics. The game is self-explanatory, but just in case, a man page is available; type <TT><B>man hangman</B></TT>. Hangman picks its words at random; sometimes the choices seem quite impossible to guess.</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="972-974.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="976-979.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 + -