Author Topic: Completely rewritten improved Hal code,  (Read 4488 times)

vonsmith

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Completely rewritten improved Hal code,
« on: October 11, 2003, 12:57:37 am »
Okay guys I got something new. I completely rewrote the "RESPOND, ATTRIBUTES OF HAL" code. I think (hope) that I did some improving over the original code. My code is quite a bit longer than the original. This code in hal5.uhp allows Hal to respond to user inputs containing "Your" statements like:

User: Your exciting sense of high adventure is great.
Hal: Do you understand my exciting sense of high adventure?
or
Hal: Think exciting when you think of my sense of high adventure.

User: Your big beautiful blue sexy eyes are awesome.
Hal: My eyes can be blue and very sexy, but big?

The new code has been tested on two computers, but I know from experience that you can't proofread your own work. You'll notice the code is nested a lot (looks complicated), but most of the code isn't run at each instance. There are a number of special cases that make it look complex. The code runs plenty quick enough on my Windows 2000, 1.8GHz Pentium.

Give it a try. The code is fully commented and a readme file is included with the downloadable zip file.

Have fun and post comments, questions or whatever here on the forum.

= vonsmith =

Download Attachment: vonsmith,v10-10-03a.zip
37.83 KB
« Last Edit: October 11, 2003, 01:00:21 am by vonsmith »
 

Larry

  • Sr. Member
  • ****
  • Posts: 266
    • View Profile
Completely rewritten improved Hal code,
« Reply #1 on: October 11, 2003, 07:27:02 pm »
Pretty cool stuff here... Great work!