Linux Question: Emacs Game?

I’m a newbie to Linux, but I found a How-To that gave me a command to open an old text-adventure game in Emacs. It was the game that starts with, “You are standing on a dusty road.”

I can’t remember what the command was and I can’t find my way back to the directions.

Can anyone help me out?

M-x dunnet



Dead end
You are at a dead end of a dirt road.  The road goes to the east.
In the distance you can see that it will eventually fork off.  The
trees here are very tall royal palms, and they are spaced equidistant
from each other.
There is a shovel here.
>


Hmmmmmmm…



[sdimbert@intranet sdimbert]$ M-x dunnet
bash: M-x: command not found
[sdimbert@intranet sdimbert]$   


:confused:

You said emacs, right? Open up emacs or xemacs and type <ESC>, x, dunnet, <RETURN>.



>examine tree
They are palm trees with a bountiful supply of coconuts in them.
>shake tree
You begin to shake a tree, and notice a coconut begin to fall from the air.
As you try to get your hand up to block it, you feel the impact as it lands
on your head.
You are dead.
You have scored 0 out of a possible 90 points.


OK - I’ve tried that, as well as <ctrl>-x, dunnet, <return>. Not working. Grrr…

Any idea what the second modifier key is (after <ctrl>) in a telnet session?

That would be the ESC or Meta key. You have to release the ESC key before pressing ‘x’.

[list=1]
[li]Press ESC and release it.[/li][li]Press ‘x’ and release it. (It should now say ‘M-x’ at the bottom of your screen.)[/li][li]Type ‘dunnet’ and hit return.[/li][/list=1]

Posting any error messages might be useful.

What do you usually use as the meta (M- ) key? I was under the impression that escape should work in all but the most dire of situations. It is possible that dunnet is not installed – try some other games, like M-x tetris, and see if they work. Here is from the emacs manual:

OK - Your suggestion worked. Sort of. LooK:



Buffers Files Tools Edit Search Mule Help
Dead end
You are at a dead end of a dirt road.  The road goes to the east.
In the distance you can see that it will eventually fork off.  The
trees here are very tall royal palms, and they are spaced equidistant
from each other.   C-h t       Use Info to read docs    C-h i
There is a shovel here. or  ESC `  or   M-`
>`C-' means use the CTRL key.  `M-' means use the Meta (or Alt) key.
If you have no Meta key, you may instead type ESC followed by the character.)

GNU Emacs 20.7.1 (i386-redhat-linux-gnu, X toolkit)
 of Thu Aug 24 2000 on porky.devel.redhat.com
Copyright (C) 1999 Free Software Foundation, Inc.

GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for full details.
Emacs is Free Software--Free as in Freedom--so you can redistribute copies
of Emacs and modify it; type C-h C-c to see the conditions.
Type C-h C-d for information on getting the latest version.


--11:**-F1  *dungeon*         (Dungeon)--L7--All--------------------------------
Mark set
                                                                               


It’s kind of hard to see, but dunnets appeared in the middle of the welcome-crap that emacs starts up with. The other command I remember ended up getting me dunnets right from the command line. Anyone know what I mean?

Looks like you have a broken terminal implementation. Two questions: What does it say when you type ‘echo $TERM’ at the command line? and what are you using to telnet to the linux box?



[sdimbert@intranet sdimbert]$ echo $TERM
ansi 


To telnet, I’m just using DOS’s telnet command.

UGH. It’s a wonder you got something vaguely intelligible out of emacs. You really need a decent VT100 emulator. Look around the web for TeraTerm or PuTTY.

OK - I got TeraTerm Pro and I like it. And, I used dunnet’s manual to determine that:



- To run this game in batch mode (no emacs window), use:
     emacs -batch -l dunnet
NOTE: This game *should* be run in batch mode!


That’s what I wanted!

:slight_smile:

:eek:
You read the manual? :smiley:

Thanks SDP for wasting an entire day for me. I had completely forgotten abut the GoMoku implementation, and now I can’t stop playing it. It’s pretty clever, but I can normally beat it if I get to start…

And sdimbert, let me just say that if you’d better be pretty confident with both bash and ftp shells, as well as DOS in order to get anywhere with dunnet. On the other hand, IBM mainframes can be broken into with an axe…

Is this a hint? Because I’m stuck in the building at the end of the road. There’s a Mail Room (with nothing in it) and a Computer Room with a computer that doesn’t echo anything to the screen, no matter what I type.

I can’t find the axe. :frowning:

Just some quick hints:
[ul][li]You have a shovel, don’t you?[/li][li]And somewhere along the road, there was some soft ground?[/li][li]Maybe if you were to find a CPU card that you could put in the VAX it would boot?[/li][li]And maybe you could find something written in the mail bins.[/li][li]Some people use their last names as usernames, and first name as password. Very sloppy security![/li][li]And don’t forget to use ‘binary’ mode FTP - or the files will end up scrambled![/li][/ul]
If you want more hints, I suggest you ask google. He knows just about everything.