If you despaired over "ELIZA" the 37K conversation piece a couple of months ago, then a talk with Max Headroom in this 6K program may restore your sanity. On the other hand it could send you off into a loop forever. The program is called "GIGO" (which, for the benefit of those new to computing terms, means Garbage In, Garbage Out). Tne nacrje is very apt, although you may have to use it for a while to see why. Where it differs from ELIZA (apart from the length) is in the graphics. You can hold a conversation with a little Max Headroom character who moves his lips as a message prints up or. the screen. His vocabulary is limited, however this doesn't mean he has to repeat himself. He will learn your replies and throw them back at you when you least expect them. So don't be rude lo him or eventually vois will get as good as you give. Max's comments are stored in the array r$() and line 90 selects from them at random. When the chosen answer is displayed it is replaced in the array by the comment you've just entcrcd. This means that he forgets each comment so can't repeat himself unless you do. One obvious development you could make would be to get Max talking through a speech synthesiser. The relevant routine runs from line 330 onwards and at present just moves Max's lips. TAU |