Okay, I trashed an old version, this is what I got so far. (Just init, functions, and class stuff mostly)
*code*
I take issue with a few things in that code.
1. All that business with strings at the beginning? Use an enumeration instead.
2. Never declare member variables as public.
3. Don't keep the words in an array. A self-balancing BST would be best-suited for this.
4. The entire word-knowledge system should probably be handled by a class with specific use-cases.
5. Camel Case
6. Comments
7. Indent
I redid it alot, it's now over 1200 lines.
I removed the code for two reasons;
One 500 lines of code is spammy.
Two I don't want people seeing my source atm.
Stranger: where in uk are you
You: England.
Stranger: wich part
You: Not saying.
Stranger: dumb ****
Question fail
Stranger: hello, im 19 m usa and you can ask me 5 personal questions and i will awnser truthfully. :wink.gif:
You: Are you gay?
Stranger: no
You: Are you going to answer no to this?
Your conversational partner has disconnected.
Clarification fail
Connecting to server...
You're now chatting with a random stranger. Say hi!
You: Hey
Stranger: hi sex?
You: SEX!
Stranger: sex=gender..
You: *facepalm*
Ppl r funni
I'm gonna be making a bot, hopefully that won't be 'so fail'.
Gotta check for adjectives, witch would require having either a list of adjectives or a list of nouns, because you can't infer everything, one word per sentence max.
Anyone wanna work with me btw? C++ but alot of work isn't too C++ spefic.
I've made some functions to split lines of input up into words and relevant phrases, and so far, implemented them to make it recognise "x is/are/was y" sentences. it then remembers and accumulates the results in a file called knowledge.txt
If you then mention the subject of a factoid, it will tell you what it knows about it.
That's what I'm starting off with making! :biggrin.gif:
Cools! Let me know how you get on. Mine is called Geeko, but answers to Geek too. :biggrin.gif:
Mine atm can do four things.
If it sees a word it dosn't know, it will ask what it means.
If a possivive (my,your,their) is used and a form of to be (is,am,are) is used two words down, it will say "So you have a "MIDDLEWORD"? And remember that you do, and ask for it's name.
If you say (pronoun/noun) and then have/has it will remember that that person or thing has that.
If you say he/she/it without saying the name the pronoun points to it will ask, "What are you talking about?".
:ohmy.gif: SAME!
For IRC or local use? If IRC, can you help me with putting mine online?
It's one that can have a conversation with you.
It will take a long time to make.
How far are you on yours?
I've made some functions to split lines of input up into words and relevant phrases, and so far, implemented them to make it recognise "x is/are/was y" sentences. it then remembers and accumulates the results in a file called knowledge.txt
If you then mention the subject of a factoid, it will tell you what it knows about it.
That's what I'm starting off with making! :biggrin.gif:
Ones that can carry on some sort of conversation, or remember what you said to a certain point, like if I said I had a cat, and then asked if I had any cats, it'd say I do. Etc.
I was gonna make one, seeing how the current latest ones are like jabberwacky and cleverbot, but they can't remember objects, and are annoying random.
I usually dig underground, where it's safe, and I use t.he special transparency edited blocks, so I see enemy's before Θey see me. But I can get a lot of points like Θis.
0
At the bottom, epic picture.
0
I redid it alot, it's now over 1200 lines.
I removed the code for two reasons;
One 500 lines of code is spammy.
Two I don't want people seeing my source atm.
0
0
0
I'm gonna be making a bot, hopefully that won't be 'so fail'.
0
Anyone wanna work with me btw? C++ but alot of work isn't too C++ spefic.
0
Mine atm can do four things.
If it sees a word it dosn't know, it will ask what it means.
If a possivive (my,your,their) is used and a form of to be (is,am,are) is used two words down, it will say "So you have a "MIDDLEWORD"? And remember that you do, and ask for it's name.
If you say (pronoun/noun) and then have/has it will remember that that person or thing has that.
If you say he/she/it without saying the name the pronoun points to it will ask, "What are you talking about?".
0
That's what I'm starting off with making! :biggrin.gif:
0
I thought those were people talking to strangers. Lol nice try.
0
It's one that can have a conversation with you.
It will take a long time to make.
How far are you on yours?
0
0
I was gonna make one, seeing how the current latest ones are like jabberwacky and cleverbot, but they can't remember objects, and are annoying random.
Was wondering if I'd have any real comparison?
0
(I turned off th to that)
0
0