Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: Endy on January 25, 2006, 02:44:56 AM

Title: Multiple shots?
Post by: Endy on January 25, 2006, 02:44:56 AM
Been meaning to ask what happens if a bot gets hit by multiple shots at once. Do they all affect the bot or are they each treated seperately?
Title: Multiple shots?
Post by: Numsgil on January 25, 2006, 04:39:06 AM
Here is a rough schematic of what happens over a cycle:

1.  ALL bot DNA code executes.

2.  The program runs through shots one at a time, updating their position and seeing if the movement from the last position to the new position has moved across a bot or not.  If a bot is hit, an appropriate response is executed.

Then we cycle back and start with the next shot.

So, short answer: multiple shots hitting a bot result in multiple responses.

(3.  All bots are moved around all that fun stuff.)