PHP Classes

File: SymbolicLevel.xbt

Recommend this page to a friend!
  Classes of Bob Wedwick  >  PHP Expert System Engine  >  SymbolicLevel.xbt  >  Download  
File: SymbolicLevel.xbt
Role: Auxiliary data
Content type: text/plain
Description: Xbert rule set
Class: PHP Expert System Engine
Ask questions and make decisions based on answers
Author: By
Last change:
Date: 4 years ago
Size: 1,004 bytes
 

Contents

Class file image Download
/*	,, SymbolicLevel.xbt -  symbolic level testing for XbertClass.php.
	<escape> is set to a value of 3 to be used as a node value.
	<five> is also a node value, and the ++ operator is demonstrated
*/,,
# a global variable used for a message.
2	,glob, <xx> You must like it here.
# set a symbolic level to the escape point
	,loc, <escape> 3
	,loc, <five> 5
	,,
	,, -----
<five>,askn, Do you want to get away to an exciting place?
	,, - - -
	,,You answered NO to the above.
++,asky,You have a second chance to get away?
	,, -- --
	,pau,Well okay, but I had to ask twice!!
	,fall, <five> to bypass the next message
6	,pau,You still answered NO!!! <xx>
	,fal, <escape> to go to the escape node
	,,
<five>,, * * * *
	,,So you DO want to get away! Me too.
	,pau, Good Choice! Have a nice trip!
	,end, ends this rule set now.
<escape>,,----
# the conclusion is that you have no sense of adventure
	,con,You have no sense of adventure!!!
	,,This fell to the escape node <escape>. What else can I say?
	,pau,====
For more information send a message to info at phpclasses dot org.