.pleas
How much energy the bot gained in the last cycle; negative if it lost.
Facts
- Address
- 204
- Name
.pleas- Kind
- Sense: the engine writes it for the DNA to read
- Group
- Gains and losses
- Written by
- The engine, in the actions phase of every cycle: the energy now minus the energy one cycle ago. You read it in the next cycle.
- Cleared
- Nobody; the engine rewrites it every cycle.
- Range
- −32000 to 32000; negative if the bot lost energy.
- Mutations
- picked as a read (
*)
.pleas (from pleasure) is the energy the bot has at the end of this cycle minus what it had at the end of the previous one: positive if it gained, negative if it lost. It is exactly .pain with the sign flipped, and everything that page says applies to it: it measures the net change, it is read one cycle late, and in the second cycle of a bot placed at the start of the simulation it shows all its energy as a gain.
Since the change is net, a bot that eats but spends more on moving reads a negative .pleas. To notice that the food pays off, it's better to compare it against a threshold rather than against 0.
The typical use is not abandoning a good food source: while the energy goes up, stay where you are and keep shooting at it.
' while gaining energy, keep shooting to feed
cond
*.pleas 20 >
start
-1 .shoot store
stop