Professor Casey Reas, TA Sean Dockray


  Main menu




Behavior + Adaptation

Exercise
Write a program which changes its behavior over time depending on the accumulated information exchanged with its environment. The primary input to the program should be human-controlled. The input can be a mouse, keyboard, camera, tablet, or a more unique device. The output can be visual or sonic or a combination of both. The focus in on the behavior you invent and how it relates to changes depending on the input.

Strategy
The system created is full of bots that are barely aware of their surroundings. Their goals are simple. The large blue "Dualis" move in random directions around the screen. The small maroon "Unis" must move toward the closest Duali but also maintain a certain distance from other Unis. User interaction occurs when the user clicks the screen and creates more Unis and Dualis and the system adapts.

Solution

To view this content, you need to install Java from java.com

Source code: alife Bot_Class posvec system

Built with Processing