i have started converting the chat bot from my tamagotchi into the ‘suya…’ virtual pet.
the core mechanics at the moment closely mirror the ELIZA chat bot formula, but i am working on extending the functionality of the core logic.
i now have code for:
recording every response from the machine into a list
counting the number of occurrences of particular machine responses into a hash table, so that the machine does not repeat itself.
what next needs to be done is:
writing the code for cycling through each response under each key heading first, so that the responses only repeat once every single one has been issued to the user
adding in-game (runtime) functionality for adding new keys and machine responses on-the-fly, so that the library of patterns can be expanded without having to stop the program, edit the code, and then recompile
i suppose i should also add that i’ve cute-ified all the letter Ls in the responses to be replaced with Ws