This program is an implementation of Conway's Game of Life with a basic UI to allow the user to interact with the simulation. The simulation state calculations are performed on a separate thread from the UI to help keep the UI responsive.
- alg.fsi - A signature file for alg.fs.
- alg.fs - Contains the code for the logic of the Game of Life simulation.
- worker.fs - Asynchronous worker code that demonstrates using the MailboxProcessor class to handle messages from the UI thread and post results from the simulation back to the UI.
- client.fs - Handles creating the window and drawing the state of the simulation as well as creating and communicating with the asynchronous worker that performs the simulation calculations.
This sample requires F# which is included in Visual Studio 2010 RC or which is available as a downloadable CTP add-in for Visual Studio 2008. For more information and downloads please visit