Bots and Simulations > Bot Tavern
Quick question
EricL:
--- Quote from: Numsgil ---Those shot routines always have been a huge mess. The problem is that it's so gnarly I was always afraid to seriously revamp it in case I screwed something up subtley.
--- End quote ---
This is exactly why I haven't opened them up. I'd end up re-writing them and don't have the time presently. I know I'm going to have to do it at some point, but there's other stuff higher on the list.
abyaly:
I was playing around with robots with varying amount ofr body to see how much damage -6 shots do and something interesting happened.
If I make one of the bots with 1000 body fire a shot, it will reliably do 40.8 damage to the opponent's body (point blank).
I wanted to get several more values and try to find a formula, so I got a bot with 32000 body and manually reproduced it to create bots with 16000, 8000, 4000 body and down. Here's where it got interesting. When I got down to testing the one with 1000 body, it did 102 damage (point blank). Every time I've done this, a bot with 1000 body from this method did 102 damage. A bot with 1000 body that started with it did 40.8 damage.
So if you're worried about breaking things on accident, rest assured that it's already broken.
Numsgil:
I think it's a piecewise function. 0-1000 is linear, or something like it. 1000-32000 is logarithmic. If the 1000-32000 code got out of sync with 0-1000, that would explain what you saw.
abyaly:
No. 1k to 32k is linear.
0 to 1k is also linear.
*linear being aphine
Numsgil:
That might be the problem then. I'm pretty sure I designed it to be logarithmic after 1000 body.
Navigation
[0] Message Index
[*] Previous page
Go to full version