This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-04-07 13:48:09

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Learning AI?

Has anyone here ever made a learning AI project? I've been fascinated with learning AI for years and would like to see an example if one exists. If not would anyone be willing to work on one with me?


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#2 2011-04-07 13:56:11

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Learning AI?

I do too. But I dont know. I'll be glad to work though!  big_smile

Offline

 

#3 2011-04-07 15:02:03

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Learning AI?

I study AI in college. Facinating subject! Don't attempt a true AI in scratch, that's my advice to you  tongue


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#4 2011-04-07 15:08:56

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: Learning AI?

sparks wrote:

I study AI in college. Facinating subject! Don't attempt a true AI in scratch, that's my advice to you  tongue

I think (some) learning AI is possible in BYOB, it would probably be pretty slow and would naturally not be able to get very complicated.


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#5 2011-04-07 15:27:02

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Learning AI?

What you want in an AI is a system that can experience something happening to it and then use that information to make ASSUMPTIONS about what will happen in the future. It gets a lot more complicated than that, but my basic definition of  intelligence is:

the ability to:
o use information the program or robot gathers to make assumptions about what will happen and then react in a way that will best constitute survival or safety of that program or robot.

o Act always in it's own best interest of survival or in swarm or group situations, the best intrests of the group.

o avoid actions or behaviours that seem to correlate to negative consequences and carry out actions of behaviours that seem to have caused benificial results in the past.

an example of this in Scratch could be a program that has the possibility to broadcast several broadcasts, say 1-10. The program has a health and hunger variable that gradually decrease. the program can broadcast any one of those broadcasts, some lower health, some increase health, some give food. If the program can work out which broadcasts are benificial and which hurt it, and then stop broadcasting the things that are negative, you have the basis or a simple learning AI.

Last edited by sparks (2011-04-07 15:31:26)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#6 2011-04-07 18:45:17

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: Learning AI?

sparks wrote:

an example of this in Scratch could be a program that has the possibility to broadcast several broadcasts, say 1-10. The program has a health and hunger variable that gradually decrease. the program can broadcast any one of those broadcasts, some lower health, some increase health, some give food. If the program can work out which broadcasts are benificial and which hurt it, and then stop broadcasting the things that are negative, you have the basis or a simple learning AI.

If I was to do this I would do it in BYOB, broadcasts are really gross and messy and theirs no stored procedures in Scratch so you can't have an array of scripts or actions. Hereis a very simple learning AI I made as a proof of concept on vanilla Scratch. Both balls have only one sense, distance to each other, and they only have short term memory. The black ball's happiness is increased with its distance to the grey ball, and the grey ball's happiness is increased with closeness to the black ball.

I think BYOB be is capable of far more then scratch for getting an pretty good learning ai.

Last edited by 14God (2011-04-07 18:46:39)


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#7 2011-04-09 02:43:50

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: Learning AI?

ProgrammingFreak wrote:

I do too. But I dont know. I'll be glad to work though!  big_smile

I don't have much time right now, but in the summer if you still wan't to work on learning AI that would be really cool. (also I still need to do some research and reading first)


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#8 2011-05-08 20:54:32

Gamefan888
Scratcher
Registered: 2009-05-17
Posts: 40

Re: Learning AI?

I've made games with AIs, but they are very simple. Here's some tips I have:
-Focus on the main goal(s) of the AI.
-Program it to react differently in different situations so it will be harder to defeat/catch/better to work with.

That's all I have! Sorry!


Looking for a challenging platformer with great controls and well designed levels with a twist? Look no further! http://www.scratch.mit.edu/projects/Gamefan888/3111394

Offline

 

#9 2011-05-09 12:53:27

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Learning AI?

I am just as fascinated, I've seen a few learning AIs, but I can't seem to find those projects anymore. Sorry. But I would be interested in seeing someone make one.

Offline

 

#10 2011-05-25 17:11:58

steve1234
Scratcher
Registered: 2009-09-19
Posts: 22

Re: Learning AI?

Well, actually, I am just starting to create on with Scratch! Right now, it can really only tell if what you say to it is good or bad, and based on that it will have a mood, and fially, based on that, it will say different things. I'll definitly post it when I finish! Please contact me if you would like to help.

Last edited by steve1234 (2011-05-25 17:12:41)


http://i158.photobucket.com/albums/t81/pjcountry41/bully%20backgrounds/bluefire.jpg

Offline

 

Board footer