Difference between revisions of "Memloc and Memval"

From WikiManual
Jump to: navigation, search
 
Line 19: Line 19:
  
 
A more complex method would be to randomly vary the locations checked per cycle, but most bots simply make do with the refeye/myeye combination.
 
A more complex method would be to randomly vary the locations checked per cycle, but most bots simply make do with the refeye/myeye combination.
 +
 +
* [[Robot DNA]]

Revision as of 01:11, 24 September 2005

These allow the bots to readback another bot's memory locations. To do this simply specify the location you'd like to reference in memloc and the bot will receive the information in memval.

Example:

cond
start
67 .memloc store
stop
cond
*.eye5 40 >
*.memval *67 !=
start
-1 .shoot store
stop

This will cause the bot to attack bots that don't have the same number as it does in memory location 67.

A slight problem, is that any bot can determine the location being referenced by simply checking in memloc with it's own memloc/memval. This is simply a more complex version of the problems facing bots using in1,2/out1,2 for secure information exhchange.

A more complex method would be to randomly vary the locations checked per cycle, but most bots simply make do with the refeye/myeye combination.