Bots and Simulations > DNA - General
Tie Feeding Idea
Numsgil:
You could use .timer instead of .counter (seeing as .counter doesn't exist). .timer is automatically incremented every cycle, and is gaurenteed to be synchronized and heritable to children bots.
strangers:
This code would tell the bot to extract half of the tied bots energy, correct?
--- Code: ---cond
*.numties 0 >
start
-1 .tieloc store
*refnrg 2 div -1 mult .tieval store
*55 .tienum store
stop
--- End code ---
Jez:
PY tie feeder tutorial
(Tie feeding used to be unlimited, but ties now (after DBv2.12))
--- Quote ---have a built in limit of 1000 energy points per cycle in either direction.
--- End quote ---
Which AFAIK is still true. Otherwise it would have worked.
strangers:
I've already read that tutorial.
Jez:
I'm not doubting that, you obviously have a pretty good idea of how tie bots work.
All I was pointing out was that your gene would have worked but for the 1000nrg/cycle limit on transfers.
The only reason I quoted the source was because I had to go check my facts before posting.
It is the in-game DB help file as well if you haven't seen that. Can't think of anywhere else, off hand, that might have information you'd find useful for writing tie bots. (Other than the incomplete Wiki which I know you'll have looked at!)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version