Etiquetas
martes, 27 de septiembre de 2011
Reactive Agents Part 2
Our program consist in a game similar to SNAKE, in which we use reactive agents to control the game.
Each agent have the possibility to:
- Grow each time he eats a meatball.
- Avoid to collide with the bounds.
- Avoid to collide with his own body.
Here is the Actual flash-based movie, since we are developing the application in flash, we are able to insert the current working application right into the blog.
Actividad 1
Our program consist in a game similar to SNAKE, in which we use reactive agents to control the game.
Each agent have the possibility to:
- Grow each time he eats a meatball.
- Avoid to collide with the bounds.
- Avoid to collide with his own body.
Here is the Actual flash-based movie, since we are developing the application in flash, we are able to insert the current working application right into the blog.
Agente Reactivo Entrega 2
Recordemos que nuestro agente es Wall-e, su misión es limpiar el mundo y para lograrlo tiene que recoger latas y transformarlas en cubos de basura para depositarlas en un lugar apropiado.
Mostramos cómo se mueve Wall-e a través del ambiente:
Ahora ya puede sensar el ambiente para realizar las siguientes reglas:
4. Moverse aleatoriamente
3. Si hay lata Y n>mis_latas -> recoger lata
2. Si mis_latas = n -> ir a la base
1. Si mis_latas = n Y en la base -> comprimir y depositar
0. Si no_energia -> recarga
La prioridad es de abajo hacia arriba