Code center > Darwinbots Program Source Code

Order of mutation

<< < (4/6) > >>

PurpleYouko:
And incidentally, regular shots have a spread of about 20 degrees anyway. They don't shoot straight out. They have a random offset from the robot's aim angle.

Botsareus:
yes I know , its not a straight line.

DoH I forgot I am BlinD aNd I am seeing them shoot straight lines...

Botsareus:
sounds like have to add another one without your approval.

PurpleYouko:
It could be done, but not without making enormous changes to the source code.
The only way around it would be to completely change the way that DB parses the DNA.
First, you would have to add a new stack to keep track of requested shots.
Next you would have to remove all shot calls from the regular robot code and shift those calls into DNA parsing.
Next you will need a loop that reads back the shot requests from the shot stack and sends the code to the right routines to make the shots.
The next problem you will have to face is how to integrate secondary shots like -2s, poison and viruses into your new system. These are generated in a different way in response to stimuli which can only be accessed in the main loop of the program and not from DNA parsing.

To be honest, it would be almost as quick to write an entirely new program as it would to make those kind of changes.

PurpleYouko:

--- Quote ---sounds like have to add another one without your approval.
--- End quote ---

Go right ahead and add whatever you like. You don't need my approval to make changes to the source code. It's free source so go ahead. Knock yourself out.  :lol:

I am just pointing out the pitfalls.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version