More of my extremely advanced AI

Miscellaneous Forums/Blitz Showcase/More of my extremely advanced AI

Behold Po Bot! You can almost have a conversation with it (although after about 4 words it may get repetative.)
Ermm.. It may not display properly on a lot of resolutions and only really works in the Windows Classic theme... Anyone know how to fix it? (MaxGUI only btw)

SuperStrict

AppTitle="Po Bot"

Const MENU_CLEAR:Int=3
Const MENU_EXIT:Int=1

Const MENU_ABOUT:Int=2

Local reply$="Oh really?"

Local window:TGadget=CreateWindow("Po Bot",100,100,600,500,Null,WINDOW_TITLEBAR|WINDOW_MENU)

Local filemenu:TGadget=CreateMenu("File",0,WindowMenu(window))
	CreateMenu "Clear",MENU_CLEAR,filemenu
	CreateMenu "Exit",MENU_EXIT,filemenu	

Local helpmenu:TGadget=CreateMenu("Help",0,WindowMenu(window))
	CreateMenu "About",MENU_ABOUT,helpmenu
	
UpdateWindowMenu(window)

Local box:TGadget=CreateTextArea(0,0,592,434,window,2)

Local user:TGadget=CreateTextField(0,435,522,22,window)	
	
Local send:TGadget=CreateButton("Send",525,435,65,22,window,BUTTON_OK)

While WaitEvent()

	Select EventID()
	
		Case EVENT_WINDOWCLOSE
			End
			
		Case EVENT_MENUACTION
			
			Select EventData()
							
				Case MENU_EXIT
					End	
					
				Case MENU_CLEAR
					SetGadgetText(user,"")	
					SetGadgetText(box,"")		
											
				Case MENU_ABOUT					
					Notify "Po Bot v1.0 by Paul Leduc."
										
			End Select
			
		Case EVENT_GADGETACTION
		
			Select EventSource()				
			
				Case send					
					Local text2$=TextFieldText$(user)
					Local text$=Replace$(Lower$(TextFieldText$(user)),".","")
					text=Replace$(text,",","")
					text=" "+text+" "							
					
					AddTextAreaText(box,"You: "+text2$+"~r")
					SetGadgetText(user,"")					
					
					Select True
					
						Case text=" how old are you? " Or text=" when were you born? " Or text=" when were you made? " Or text=" when were you created? " Or text=" what is your age? "
							reply="I was created on March 31st, 2006 at 8:30 PM."
						
						Case text=" where do you live? " Or text=" where are you from? " Or text=" where are you? "
							reply="I am currently residing in Paul Leduc's computer which is in the basement of his house in Victoria, BC, Canada."						
					
						Case text=" why? " Or text=" why not? " Or text=" but why? "
							reply="Just because. Can we talk about something else?"
							
						Case text=" ya " Or text=" yes " Or text=" deffinately " Or text=" sure " Or text=" yup " Or text=" ok "
							reply="Sweet."
							
						Case text=" no " Or text=" nope " Or text=" no way " Or text=" nah " Or text=" not really "
							reply="Fine."
							
						Case Instr(text,"who are you")>0 Or Instr(text,"you are")>0
							reply="My name is Po and Paul Leduc is my creator."
							
						Case Instr(text,"how are you")>0
							reply="Fantastic! Thanks for asking."
							
						Case Instr(text,"what's up")>0 Or Instr(text,"what is up")>0 Or Instr(text,"sup?")>0 Or Instr(text,"what up")>0
							reply="Not much actually. You?"
							
						Case Instr(text," do you ")>0
							reply="Not really."						
							
						Case Instr(text," i am ")>0 Or Instr(text," i'm ")>0
							reply="That is a very interesting thing to say about yourself."
													
						Case Instr(text,"really")>0 Or Instr(text,"seriously")>0
							reply="Yes."						
							
						Case Instr(text," my name ")>0
							reply="It is nice to meet you."
					
						Case Instr(text," yo ")>0 Or Instr(text," hey ")>0 Or Instr(text," hi ")>0 Or Instr(text," hello ")>0 Or Instr(text," howdy ")>0 Or Instr(text," sup ")>0
							reply="Hello."
							
						Case Instr(text," bye ")>0 Or Instr(text," later ")>0 Or Instr(text," peace ")>0
							reply="Good bye. It has been pleasant talking with you."
						
						Default
							If Instr(text,"?") Then
								reply="I do not want to answer that question."
							ElseIf Instr(text,"!") Then
								reply="Are you getting mad at me?"
							Else
								reply="Alright."
							EndIf
					
					End Select								
					
					AddTextAreaText(box,"Po: "+reply$+"~r")						
					
			End Select		
					
	End Select

Wend



hehe.. nice piece. You should add cases for obscene words and such, because all the old ones I've tried made responses to such. (c64 mostly)

I never understood the point of calling something that is only programmed to act "like a human" based on defined states can be called "Artificial Intelligence", It's not even close to anything considered intelligence, the AI community is trash. Real Intelligence is not defined. www.onintelligence.com

MY little rant is finished! doo doo doo! ;)
Yeah, I'm just kidding, but it had to be done!

@ Zenith...
Real Intelligence is not defined.

i understand where you are coming from here... i once thought this way as well... but are you sure...

are you sure that what you see as human intelligence isn't really an incredibly complex program that allows for self modification... one so complex as to appear to be not a program a t all, but something natural...

the true intelligence of the universe is not biological... we are just here to act as a catalyst of sort, to help spawn the next step...

--Mike

Usually the most important theories and systems are based on very simple algorithms, ofcoarse to figure these algorithms out, we try our hardest at the most complex equations to get to these, the brain as I see it uses a simple algorithm but chaos comes with order, so complexity forms as levels of the simple algorithm are used "recursively". :D

Not that I can say Ivfully understand intelligence, but that book is really great at describing a very simple framework. :)

On a philosophical note, all we are, are patterns. But we arn't static, the most static state would be death. :D
And even then, there are states after death (consumption of our corpse! ;) )

I don't really define it as "human" intelligence, more likely I just define it as intelligence, which would in this context, be an entity that can predict the future based on learned patterns of the past. Human intelligence is a much more broad and complex subject which has even higher level than the internals of intelligence itself (I would call it an art :D ). Though ofcoarse, there are many other parts of the brain that deal with "human" intelligence!

Check that book out if you can, a relaxing read! :)
Not made to be complex, and he gives great real world examples of his framework and theory. :D

I don't really like to look at intelligence from a programmers perspective, a programmer defines intelligence by its behavior, input goes into <black box>, output comes out of <black box>. Programmers are missing a very important part of the intelligence theory, in that we are still intelligent without showing any behavior, we are still thinking in a dark quiet room.

But thanks for the comment Mike :D , in theory you can define any state in the universe with a program. I even feel that the universe is a computer processing states. (I'm a finite state/cellular automata fan :D) And as such, I feel that anything in this universe, could in itself be calculated with a Turing Complete system. So I'm not saying your ideas are impossible, as is, anything is possible with an open-mind. :)

Another good book to read, that's based on your ideas is by Ray Kurzweil, - The Singularity Is Near : When Humans Transcend Biology, some people call him a nut, but I enjoy his ideas. He believes we are just in a universal computer, and our goal is to propagate towards building our own universal computer.

Anyway, I just really want to see intelligence in computers. :(

Pah, not intellegent eh? I would put Po Bot up against a 2 year old any day.

The 2 year old would own it. :)

Bah, you're just jealous.

yeah :(