Your should arrange to stop a run when no further change is possible. An easy way to do this is use periods of at least 40 events, and check whether there has been no movement in the current period since that would imply that everyone is content and no will ever move again. As in the first exercise, a beginner may choose to use the source code provided, and make the necessary changes.
University of Michigan Program for the Study of Complex Systems
Contact http@maria.physics.lsa.umich.edu.
Revised November 4, 1996.