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

#1 2010-03-13 09:36:03

MrSqueers
Scratcher
Registered: 2010-01-24
Posts: 6

How to make a good Artificial Intelligence

I've got a really cool real-time strategy game I'm working on, but I have no idea how to make a good AI.  I'm sure I'm not the only one with this question, and good knowledge of how to make artificial intelligence would be very useful.  Please help and post lots of insightful comments about how to make an AI.  Maybe random number generator?

[blocks]
<pick random(  )to(
<if> [/blocks] etc.


You lost The Game.
http://en.wikipedia.org/wiki/The_Game_%28mind_game%29

Offline

 

#2 2010-03-13 09:57:53

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: How to make a good Artificial Intelligence

It depends on what kind of game you're making an AI for. Can you show the project?
Even the genre isn't really enough (unless it's platformer) to tell what kind of AI.

A random number generator isn't very good for complex AI. Try checking positions and variables, think what you would do if for example, the enemy has 100 people and you have 2, would you make them fight or run?


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#3 2010-03-17 14:34:48

MrSqueers
Scratcher
Registered: 2010-01-24
Posts: 6

Re: How to make a good Artificial Intelligence

Okay.  Here it is.

http://scratch.mit.edu/projects/MrSqueers/926594


You lost The Game.
http://en.wikipedia.org/wiki/The_Game_%28mind_game%29

Offline

 

Board footer