Bots and Simulations > F2 bots
Republican Bee (F2)(Commander Keen)(25-05-2008)
bacillus:
Interesting... a colony should ideally form in center to avoid unwanted wraparounds...
Trafalgar:
--- Quote from: EricL ---It should be possible for a smart bot to determine the field size for fields larger than size 4 by thrusting horizontally a specific amount and measuring the resultant change in xpos...
--- End quote ---
It'd be easier and probably smarter to just check something like dist(xpos+1000, ypos) and see what comes out. Since the return value of dist is scaled down when the field size is larger than 4, you can easily enough determine the scaling factor, and from that, knowing the size of a size 4 field, determine the actual size of the current field.
EricL:
--- Quote from: Trafalgar ---It'd be easier and probably smarter to just check something like dist(xpos+1000, ypos) and see what comes out.
--- End quote ---
Ooh, yes. Very smart.
bacillus:
I move to (0,0) and measure once the bot jerks more than is possible.
Commander Keen:
That doesn't work on non-wraparound sims, and it also means bots waste time heading to 0,0.
Next step: make a bot that hides in the corners and runs off to the other side of the map to escape...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version