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 / Is it possible to make this?

Author
Message
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 2nd Dec 2007 22:47
Sorry about the bad title.
While going through my files I found this text document I made for an old DBC challenge; a talking program.
I made it extremely complicated and was wondering if it is actually doable in DBC
Quote: "
REM COMMENTS

To begin with all that REM knows is a few basic types (Animal, Vegetable, Mineral, Place, Person)
You can define sub-types, such as Person-> Male/Female, and REM will remember their relationships.
You can also define new types, such as Colours or Records.
I will include a sort of thesaurus, so that alternative words (e.g. type and kind) use only one entry in memory
as they have the same meaning.
(This is getting complicated!!! lol)
-------------------------------------------------------------------
To begin with I will make a learner version that just remembers facts and recalls them when a word
is recognised. It will also ask questions about words it doesn't recognise.
-------------------
There are two types of sentence, statements and questions, statements end with (.) or nothing and questions end
with (?). For example, the two sentences {George Bush is the President of the USA.} and
{George Bush is the President of the USA?} are exactly the same but would expect very different responses.
1.
User: George Bush is the President of the USA.
REM: I will remember that George Bush is the President of the USA.
REM: What is a President? (Animal, Vegetable, Mineral, Place, Person)
User: Person.
REM: I will remember that a President is a person.
REM: What is the USA? (Animal, Vegetable, Mineral, Place, Person)
User: Place.
REM: I will remember that the USA is a place.
2.
User: George Bush is the President of the USA?
REM: Yes, George Bush is the President of the USA.
REM: A President is a person. The USA is a place.
and so on...
-------------
Conversations are two-way, so when REM asks a question he will wait for a response to that question. In more
advanced versions he will keep checking his memory and ask questions about words that weren't explained to him.
Maybe he could even seek out new knowledge i.e. if you told him that an ostrich is a bird he might ask about
other types of birds, what they eat etc.
"


"You must be someone's friend to make comments about them." - MySpace lied.
Zombie 20
19
Years of Service
User Offline
Joined: 26th Nov 2006
Location: Etters, PA
Posted: 3rd Dec 2007 01:28 Edited at: 3rd Dec 2007 01:30
Yes, it is doable, in fact that sounds really manageable. I'd personally use a memory subroutine *I despise functions * and have a data list of items for REM to remember, then when you ask a question, have it jump to that routine. OH, wait, for each catagory, person, place, thing,..put those in individual routines to jump to for specifics. Example




anyways, good luck obese, that sounds fun , I totally forgot about the character creation contest, mines still half done ;P.


Coffee coffee coffee coffee coffee coffee cappacino, JAVA!
Zeus
19
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 3rd Dec 2007 03:01
Quote: "*I despise functions * "


Amen.

Bluestar4
20
Years of Service
User Offline
Joined: 19th Dec 2005
Location: USA
Posted: 5th Dec 2007 08:11
its quite programmable but would be an extreme waste of the capabilities of db or db-pro. If your going to do a project that only requires basic text in and text out then I suggest you write the code to it in C or C+ . I have seen several older programs that were basically very simular to what you have described, one in particular was called "Dr. something". The program would being by saying "hello how are you today" . if you said "not good" it would answer - "why are you not feeling good today " ect,...
Needless to say , your main concern when doing a program of this type will be making a good parser !
Why C+ instead of DB ? because you need to use the right compiler for the right job.

Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th Dec 2007 09:17
thanks bluestar, yeah I've completely gone off the idea now
I just want someone to TALK TO!!!
jk

"You must be someone's friend to make comments about them." - MySpace lied.

Login to post a reply

Server time is: 2026-07-05 16:05:55
Your offset time is: 2026-07-05 16:05:55