1
Ultra Hal 7.0 / Have Hal modify his own thought processes
« on: December 08, 2005, 01:05:06 pm »quote:
Originally posted by Bill819
GrantNZ
This code is grossly simplified:[code]UserChessMove = HalBrain.SearchPattern(OriginalSentence, "*MY MOVE IS *", 2)
If UserChessMove <> "" Then
HalChessMove = ChessEngine(UserChessMove)
If HalChessMove = "invalid" Then
GetResponse = "That move's illegal!"
Else
GetResponse = "My move is " & HalChessMove & "."
End If
Unfortunately you logic is extremely oversimplified and won't even begin to work the you propose. On chess sites you will see that many programs are set up to play each other. The logic do to that is a little complicated and it till requires a third program to make them both work. The problem arrises in trying to pass the information back and forth between the program and Hal. We as users never see this part of the coding as it is done on a machine type of operations. I am sure that it can be done just not by me and not at this time.
Bill
I'm not sure about the logic needed here, but if you've written a chess engine in VB, couldn't you just compile that to a DLL then call the function from Hal's brain script?