Please refer to the paper, “Darwin’s World Simulation in C#: An Interpreter” from the January/February, 2010 issue of JOT. This paper focuses on the GUI aspects of the implementation.
The two remaining classes are World (the model of the Darwin world) and the GUI class WorldUI. The World classs communicates to the WorldUI class, the observer class, by firing events. This model/view separation provides for easier maintenance.
Class World is presented at the attached PDF.
Note: Due to the typographical sophistication of this article, no HTML version is available. Please use the PDF version.
About the author
Richard Wiener: "Darwin’s World Simulation in C#: The Model/View Classes", in Journal of Object Technology, vol. 9, no. 2, March - April 2010, pp 75-87 http://www.jot.fm/issues/issue_2010_01/column6/