Upload

Loading icon Loading...

This video is unavailable.

C# Conway's Game of Life Example

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to like exceptionthrown's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to dislike exceptionthrown's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to add exceptionthrown's video to your playlist.

Uploaded on Apr 27, 2008

Quick and dirty GoL implementation in C# .NET 2.0 using Windows Forms. The application has a few pre-loaded patterns but also allows users to create their own by clicking inside the display area. For more information on the Game of Life, check out the following site:

http://en.wikipedia.org/wiki/Conway%2...

Note that I've added the ability for the live units to "wrap" around the edges. Without that wrapping, the preloaded patterns would run forever without dying out.

EDIT:
I've had a bunch of people ask me to clarify what I meant by drawing on a bitmap and setting it to a picturebox so I created a real quick example. It also includes how to calculate which cell in the board was clicked. You can find it below:

www.exceptionthrown.com/DrawingOnABitmap­.zip

Loading icon Loading...

Loading icon Loading...

Loading icon Loading...

Loading icon Loading...

Ratings have been disabled for this video.
Rating is available when the video has been rented.
This feature is not available right now. Please try again later.

Loading icon Loading...

Advertisement
Loading...
Working...
to add this to Watch Later

Add to