technique

Let Objects Handle Themselves

Give each agent its own class with move() and display() methods encapsulating its full behavior, then loop over an array of instances calling move() and display() on each.

Also called: encapsulated agent pattern · move-display object lifecycle

What it is

How it works

Parameters & tuning

Where it’s been used

Variants & neighbours

Go deeper


Revision 1 · 1 source · Something wrong? Tell us.