BeSam
(for BeOS x86/R4.5)
Author: Kevin Puckett Albrecht
BeSam Version: 2.1.0
Interpreter Version: 5.1.0
Date: July 30, 1999
E-mail: kpalb@hotmail.com
Website: http://home.earthlink.net/~kevalb/
Description
BeSam is the newest version of Sam, or Scriptable Artificial Mind.
BeSam loads a brain file. The user can then talk to Sam. Sam brain files are identified by the following extension and/or MIME type: (.brn, text/x-vnd.KPA-sambrain).
Usage
There are three ways to load a brain into BeSam. The first way is
to double-click the brain file or drag it onto BeSam's icon. The second
method is to choose Load from the File
menu. The third and final way is to drag and drop the brain file onto
the BeSam window while it is running.
Two brain files accompany this distribution: bare_minimum.brn is
the absolute smallest brain file that can work without causing errors;
sammy.brn is a much larger, though still somewhat limited, brain file
that simulates conversation with a "computer geek." If you make your own
brain file, visit the website above for instructions on how to share it
with the world.
Brain Scripting Language (Version 5)
n>>
- Sets the name of the brain; Only set this once.
v>>
- Sets the version of the scripting language of the brain; Only set this once.
>>>
- Marks a comment
s>>
- Matches exact sentence the user types. (Note: not case-sensitive.)
p>>
- Matches phrase the user types in a sentence ending in a period,
exlamation point, or nothing. (Note: not case-sensitive.)
p?>
- Matches phrase the user types in a sentence ending in a question
mark. (Note: not case-sensitive.)
e>>
- Marks sentences to respond with when no match is found and
the user's input ends in a period, exlamation point, or nothing.
e?>
- Marks sentences to respond with when no match is found and
the user's input ends in a question mark.
r>>
- Sentence that brain responds with. If the responding sentence begins with
<q>
, the rest of the response is displayed, and then
the program ends.
<<<
- Marks the end of a block of responses (
r>>
).
Version History
1.0.0 - July 12, 1999
-
1.1.0 - July 15, 1999
- Fixed miscelaneous bugs throughout the program.
- Added ability to resize window.
1.2.0 - July 17, 1999
- Fixed more bugs throughout the program.
- Added file filtering to the load panel.
- Changed MIME type of brain files to 'text/x-vnd.KPA-sambrain'.
2.0.0 - July 22, 1999
- Fixed a bug that causes crashes when using a large script.
- Rewrote brain interpreter to fix all old problems.
- Now supports brain scripting language version 5, which is more powerful and efficient.
- Title bar shows name of brain, not the filename.
2.1.0 - July 30, 1999
- Changed window background from white to light grey.
- Added more error checking for incorrectly written brain scripts.
- Increased maximum script size to 16KB and maximum number of responses to 32.