Newsgroups: rec.arts.int-fiction
Path: nntp.gmd.de!news.ruhr-uni-bochum.de!news.uni-stuttgart.de!news.belwue.de!swidir.switch.ch!news.grnet.gr!btnet-feed2!btnet!newsfeed.internetmci.com!news.sprintlink.net!news-peer.sprintlink.net!howland.erols.net!vixen.cso.uiuc.edu!uchinews!news
From: Erik Swanson <egswanso@midway.uchicago.edu>
Subject: [Inform] - problem coding a riddle
X-Nntp-Posting-Host: pierce2-53.rh.uchicago.edu
Content-Type: text/plain; charset=us-ascii
Message-ID: <329CFB4C.3183@midway.uchicago.edu>
Sender: news@midway.uchicago.edu (News Administrator)
Reply-To: egswanso@midway.uchicago.edu
Content-Transfer-Encoding: 7bit
Organization: University of Chicago
Mime-Version: 1.0
Date: Thu, 28 Nov 1996 02:39:08 GMT
X-Mailer: Mozilla 3.0 (Win16; I)
Lines: 24

Hi all, 
i'm having a problem coding the following situation, you come to a man
asking a riddle, who won't let you pass unless you have the right
answer, however, i can't get it to work!  I've gotten it to accept
nothing as right, and nothing as wrong, but not to accept the one right
answer and reject others.  Help please!  Here's the code to peruse...
Answer: 
If (noun==qwerty && Karex hasnt general)
{ give Karex general;
"~NO~, screams the angry Karex.  ~You have solved my riddle!  I must now
\
let you pass, much to my chagrin.~";
If (Karex has general)
"~You have solved my riddle, let me be.~";
}
"~That is not the answer to my riddle~";

Thanx in advance... Erik 
--------------------------------------------------------------   
We see things not as they not but as we
are.                                              
	 			- Anais Nin          
--------------------------------------------------------------   
http://student-www.uchicago.edu/users/egswanso
