Hill-Climb Action

From AgentCubes
Jump to navigation Jump to search

Hill-climb.PNG

Definition: The Hill-Climb action: gives the agent Artificial Intelligence.
Parameters:

AttributeName: name of the attribute to set

Option: You may choose Four Directions which will set the AI to look at the 'AttributeName's property from' left, right, up to down. Or you can set the option to look at the 'AttributeName's property 'from all 8 directions which includes all diagonal directions

Additional Parameters:

animation: accelerated or constant speed

time: movement happens instantly (if time is 0) or the slider() option connects the animation time to the slider located above the world.

Example: AgentcubesOnline hill-climb example

This example shows how the action hill-climb makes the bug move to the target.