
@Billy, thnks for the link. The only way for code to know about other code and do something meaningful is through two concept in AI : Collisions and Randomness. Those are the 2 keywords I picked from the link you provided. If one really wants to go crazy about these then here goes : 1) Collision detection : You write code to detect such. The most basic form is " bounding box " algorithm. In your "objects", you build a code box around the "image" or build many boxes which will be more accurate. You have to code each box for actions. Anything that comes in "contact" will cause further code to be run that can be change of weapons, different fighting skills etc. You can use this basis for Robots too using sensors that degenrate input and collisions generate actions. Ofcourse there are many complex detection codes and you can go quite deep into this. Similarly, if I have 2 objects, I could create a chasing code so that both objects will be engaged, using the same collision detection. 2) Randomness : I had summarised earlier. Rgds. On Fri, Jul 23, 2010 at 2:00 PM, Billy <billyx5@gmail.com> wrote:
@Ndungu - actually it is possible.
MIT normally have a yearly game programming competition called battlecode. They either group into teams or individually and are given a basic framework of a strategic game (u know like age of empires). Each team designs and develops strategies for their bots which are then pitted together through 'N' stages knockouts, quarters, semis and then finals. Pretty interesting stuff. Check out this link
http://battlecode.mit.edu/2010/info
-Billy