Turtle and Observer Command

who-max-of-turtles-with [condition] [list of commands]

Returns a list with the who number of the turtle which satifies the [condition] and has the highest value of [list of commands] along with the highest value of [list of commands].

Note: When a turtle calls the command, it is not included as part of the calculation.

Examples:

who-max-of-turtles-with [color = red] [energy] returns a list with the who number of the red turtle with the most energy and the highest energy value: [2 5].

Related commands: