
June 9th, 2004, 05:22 PM
|
|
|
|
Join Date: Apr 2007
Location: Phoenix, OR USA
Posts: 8
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
[appleeaters]Simulated moves
Since I can't seem to figure out a good way to create AI for trying to kill robots, I've basically created a simulated robots library within my code. It works amazingly well, but it's SLOW! Doing a "try-every-possible-move-to-get-the-best-outcome" approach takes a very long time even with a relatively small map area (I don't actually search the whole map). Anybody else simulating movements for their AI, or should I scrap this system and try finding a more efficient approach?
There just doesn't seem like there's any obvious algorithm for killing robots on any map. Sometimes it's best to try to walk them toward a dead robot, sometimes it's best to run them into each other, and sometimes you have to move several spaces in a counter-intuitive direction to set things up nicely. How to check for this in a simple script is just beyond me so far.
|