Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / My AI Program

Author
Message
I am Me
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Right here
Posted: 12th Dec 2003 01:56
I am making a program that will remember what you told it. This is what I have so far:



In the "data.dat" file I have:



What I want it to do is write the new strings inside the function decleration and have it programmed so that if it doesn't display a response, it goes to the "what" section and writes it.

any suggestions?

in layman's terms please....
I am Me
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Right here
Posted: 12th Dec 2003 02:09
ok, I know you're looking at this, PLEASE respond. I'm bored and I finally have the ambition to do simething

in layman's terms please....
Hell IVIonkey
22
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 12th Dec 2003 02:10
You can't do it that way. You can't have a program dynamically create code and then execute that new code at runtime. This is because when you compile your exe and run it, all your DB code is converted into machine code so that it can run. When your program generates DB code, it is not compiled into machine code and thus cannot run.

You're going to have to write your own string interpreter that will execute a fixed set of commands based on the content of the string. You could create an appendable text file containing a list of words and the sentences the computer should reply with. Then, when you type a word, the computer searches the file for the word: if it finds the word, it replies with the given sentence; if it doesn't find the word, it appends to the file however you see fit.

I am Me
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Right here
Posted: 12th Dec 2003 02:13
ok, I'm kindof a noob, so how do I do that?

in layman's terms please....
zenassem
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 12th Dec 2003 02:15
I am Me,
I can just tell you honestly this is not the way to go about it. I explained what you would need to do to create a computer that could respond intelligently with learning phrase. You really need to build a complex command parser that can take in many subtleties of the english language. You can then begin to build a neural network, fuzzy logic sets, memory Algorithms, etc.. etc..

I am trying to locate that thread.
Also, it makes it hard for people to follow, and be willing to help when you post the same topic across multiple forums and multiple threads. This is the third seperate post on related to this topic that you have posted. We don't know where to post our reply anymore

▒░▒░♂♀░▒░▒
Hell IVIonkey
22
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 12th Dec 2003 02:20
Bit of advice. You seem to be in way over your head. Intelligent AI is not a suitable first project. Try making some simple programs first to learn how to program so that your lack of programming knowledge won't interfere with this already-difficult concept.

zenassem
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 12th Dec 2003 02:27
I am Me,
See, now I just read what you posted in the thread Program memory, and now the post I put in here is not up to date with what you need. From what you posted I now feel that you don't really want an aophisticated AI conversation but rather something that appears to be Intelligent. There is a difference. in fact most of the AI in games stops with giving the illusion of intelligence.

I think you really need to clearly tell us what you want. From your posts I think that you actually just want the computer to have a bunch of preset phrases, and be able to pick the best one, depending on a preset list of inputs. If an input comes in that the computer does not know how to respond to It will ask you to please tell me the correct response. Now the next time you enter that phrase you want the computer to give you the right phrase back. Perhaps you even want the computer to sometimes have a couple of different phrases it can choose from for any given input. These are all easy to do. I can put some code together tomorrow to do this. just understand that this is very differnet form true are scientifically worthy aritificiak "intelligence". For that you we need very complex learning alogirthms as stated befor, neural networks, memory, fuzzy logic, complex behavioral biological alogorithms, behavor modeling systems, chaos math theorems, etc.. etc..

▒░▒░♂♀░▒░▒

Login to post a reply

Server time is: 2025-05-22 01:21:15
Your offset time is: 2025-05-22 01:21:15