Difference between revisions of "Tutorial"
imported>Loon911 |
imported>Loon911 |
||
Line 24: | Line 24: | ||
− | [[Methods| | + | [[Methods|Click here to view a list of all Methods]] |
=== Rules === | === Rules === |
Revision as of 10:00, 20 June 2019
Welcome to AgentCubes wiki! The AgentCubes wiki was made to help you learn AgentCubes.
Contents
Tutorial Links
- Videos
- Conditions
- Actions
Agents
Creating
Inflating
World
Programming Environment
The Programming Environment for AgentCubesonline looks like the image on the right. In the Programming Environment you can program the agents that you have created. To program your agents you drag and drop Conditions and Actions into the rule sections. When all your Conditions are met the Programming Environment will then execute all your Actions.
Methods
A method is a segment of the agent's behavior that contains a set of rules. A trigger is at the head of every method and determines when the method will be called. The rules on the right image are in the "while-running" method.
Click here to view a list of all Methods
Rules
Rules contain Conditions on the left side and Actions on the right side. Users may drag the Conditions to the left side and users may drag Actions to the right side of the rule container. If all Conditions are met than all Actions will be executed.
Conditions
Conditions are the requirements that need to be met for the actions to be executed. For example, a condition could be if an agent see something to the right. If a condition is met than the rule will execute the actions. A real world example of conditions is an if function in many programming languages. Condition(s) are the requirements that need to be met for the if functions body to get executed.
Click here to view a list of all Conditions and their parameters
Actions
In AgentCubes actions are the things you can make the agent(s) execute. For example, one of AgentCubes's actions, is the ability to make a agent move right. A real wold example of this in another programming language is the body of an if statement. If the conditions are met than everything in the if body will be executed.
Click here to view a list of all Actions and their parameters
Example
FUTURE VIDEO