<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>life | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/life/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Thu, 16 Feb 2023 16:30:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>life | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>A free eBook about the Game of Life</title>
		<link>https://learncgames.com/a-free-ebook-about-the-game-of-life/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-free-ebook-about-the-game-of-life</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Fri, 17 Feb 2023 00:00:15 +0000</pubDate>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[life]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=3210</guid>

					<description><![CDATA[<p>Remember the cellular automation Life? I covered it in previous blog entries John Conway&#8217;s Game of Life and also Portable Life in C. Well, Associate Professor Nathaniel Johnston (in the Department of Mathematics and Computer Science at Mount Allison University in New Brunswick, Canada) and Dave Greene wrote a book/eBook about Life. It&#8217;s N. Johnston [&#8230;]</p>
The post <a href="https://learncgames.com/a-free-ebook-about-the-game-of-life/">A free eBook about the Game of Life</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:31,&quot;href&quot;:&quot;https:\/\/www.njohnston.ca\/publications\/conways-game-of-life-mathematics-and-construction&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260206110750\/https:\/\/njohnston.ca\/publications\/conways-game-of-life-mathematics-and-construction\/&quot;,&quot;redirect_href&quot;:&quot;https:\/\/njohnston.ca\/publications\/conways-game-of-life-mathematics-and-construction\/&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 19:09:59&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-09 20:19:23&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-12 22:35:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-16 19:52:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-20 02:02:03&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-24 16:45:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-01 17:04:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-06 23:03:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-11 04:41:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-14 16:16:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-20 13:33:46&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-24 12:58:00&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-27 21:49:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-03 02:45:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-08 11:28:19&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-12 05:32:23&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-17 09:56:16&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-21 04:19:46&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-21 04:19:46&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:32,&quot;href&quot;:&quot;https:\/\/sourceforge.net\/projects\/golly&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20251221195135\/https:\/\/sourceforge.net\/projects\/golly\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 11:04:10&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-09 20:19:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-12 22:35:41&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-16 19:52:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-20 02:01:59&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-24 00:15:22&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-27 00:41:45&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-03 20:07:33&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-06 21:54:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-10 18:30:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-14 16:16:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-18 16:51:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-22 08:32:15&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-26 13:35:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-30 20:41:02&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-03 02:45:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-08 00:33:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-12 05:32:26&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-16 15:32:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-20 09:40:42&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 09:40:42&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img fetchpriority="high" decoding="async" class="alignleft size-full wp-image-3212" src="https://learncgames.com/wp-content/uploads/2023/02/Conways-game-of-life.png" alt="Front cover of Conway's Game of Life eBook." width="223" height="300" />Remember the cellular automation Life? I covered it in previous blog entries <a title="Link to blog entry about the Game of life by John Conway" href="https://learncgames.com/john-conways-game-of-life/" target="_blank" rel="noopener">John Conway&#8217;s Game of Life</a> and also <a title="Link to Portable Life in C blog entry" href="https://learncgames.com/portable-life-in-c/" target="_blank" rel="noopener">Portable Life in C</a>. Well, Associate Professor Nathaniel Johnston (in the Department of Mathematics and Computer Science at Mount Allison University in New Brunswick, Canada) and Dave Greene wrote a book/eBook about Life. It&#8217;s N. Johnston and D. Greene. <em>Conway’s Game of Life: Mathematics and Construction</em>.</p>
<p>The 474 page eBook is free <a title="Link to Page about the book on the author's website" href="https://www.njohnston.ca/publications/conways-game-of-life-mathematics-and-construction/" target="_blank" rel="noopener">on this page</a> or you can buy the coloured hardback book. On Amazon that&#8217;s a modest £59.99! The PDF is 93 MB in size.</p>
<p>Ever since Life was publicized in Scientific American in the 1970s, it&#8217;s held a fascination for many including myself. I wrote a program (in Basic) 45 years ago to run it, but it was quite slow. One of the fastest I ever saw was written in 6502 assembly language running on an Acorn Atom. A very comprehensive and fast open source Life is <a title="Link to Golly project on Sourceforge" href="https://sourceforge.net/projects/golly/" target="_blank" rel="nofollow noopener">Golly</a>, written in C++ and is scriptable in Python or Lua.</p>
<p>But back to the book. If you are a real life afficionado and know the difference between a Glider and an Oscillator then this book/eBook is definitely for you. It&#8217;s a detailed look at Life from an academic point of view.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>The post <a href="https://learncgames.com/a-free-ebook-about-the-game-of-life/">A free eBook about the Game of Life</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3210</post-id>	</item>
		<item>
		<title>Portable Life in C</title>
		<link>https://learncgames.com/portable-life-in-c/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=portable-life-in-c</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sun, 28 Feb 2021 00:00:09 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Source code]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[portable]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2791</guid>

					<description><![CDATA[<p>I&#8217;ve mentioned Life before, this is the cellular automata as discovered by John Horton Conway. It&#8217;s perhaps less of a game and more of a recreation for anyone fascinated by programming. It&#8217;s hard to add up how many man-hours have been spent on it. Developer Justine Tunney (aka Jart on Github) has developed a portable [&#8230;]</p>
The post <a href="https://learncgames.com/portable-life-in-c/">Portable Life in C</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:140,&quot;href&quot;:&quot;https:\/\/justine.lol\/apelife\/index.html&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20251217014717\/https:\/\/justine.lol\/apelife\/index.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 12:12:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-12 22:35:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-27 11:04:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-17 18:47:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-24 15:50:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-27 21:41:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-03 00:55:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-08 03:54:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-12 09:28:26&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-16 00:59:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-20 11:13:32&quot;,&quot;http_code&quot;:503}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 11:13:32&quot;,&quot;http_code&quot;:503},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:141,&quot;href&quot;:&quot;https:\/\/justine.lol\/cosmopolitan\/index.html&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260108170210\/https:\/\/justine.lol\/cosmopolitan\/index.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 12:13:01&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-17 18:47:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-24 15:50:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-27 21:41:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-03 00:55:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-08 03:54:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-12 09:28:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-16 00:59:06&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-20 11:13:44&quot;,&quot;http_code&quot;:503}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 11:13:44&quot;,&quot;http_code&quot;:503},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img decoding="async" class="alignleft size-medium wp-image-2793" src="https://learncgames.com/wp-content/uploads/2021/02/apelife-300x217.png" alt="apelife" width="300" height="217" srcset="https://learncgames.com/wp-content/uploads/2021/02/apelife-300x217.png 300w, https://learncgames.com/wp-content/uploads/2021/02/apelife.png 511w" sizes="(max-width: 300px) 100vw, 300px" />I&#8217;ve <a title="Link to blog entry on Life" href="https://learncgames.com/john-conways-game-of-life/" target="_blank" rel="nofollow noopener">mentioned Life before</a>, this is the cellular automata as discovered by John Horton Conway. It&#8217;s perhaps less of a game and more of a recreation for anyone fascinated by programming. It&#8217;s hard to add up how many man-hours have been spent on it.</p>
<p>Developer Justine Tunney (<em>aka Jart on Github</em>) has developed a portable Life called <a title="Link to apelife" href="https://justine.lol/apelife/index.html" target="_blank" rel="nofollow noopener">Apelife.</a> Portable as in it can run on Windows (graphically) and Linux (Text User Interface). The application is a modest 112 KB in size and is one of the fastest I&#8217;ve seen. When you have a large area and gliders whizz across it, you know its fast.</p>
<p>She is also the author of <a title="Link to Cosmopolitan C" href="https://justine.lol/cosmopolitan/index.html" target="_blank" rel="nofollow noopener">Cosmopolitan C</a> which Apelife uses.  It lets gcc outputs portable binaries that will run on every Linux distro in addition to Mac OS X, Windows NT, FreeBSD, OpenBSD, and NetBSD. It&#8217;s rather ingenious.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>The post <a href="https://learncgames.com/portable-life-in-c/">Portable Life in C</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2791</post-id>	</item>
		<item>
		<title>John Conways Game of Life</title>
		<link>https://learncgames.com/john-conways-game-of-life/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=john-conways-game-of-life</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Wed, 03 Jun 2020 23:00:52 +0000</pubDate>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Recreational]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[John Conway]]></category>
		<category><![CDATA[life]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=730</guid>

					<description><![CDATA[<p>An English mathematician John Conway (who died not that long ago) came up with a very simple cellular automaton that he called Life. This was back in the 1970s and I remember finding his original article in Scientific American while at University. We had no internet then and I whiled away 10 or so hours [&#8230;]</p>
The post <a href="https://learncgames.com/john-conways-game-of-life/">John Conways Game of Life</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:159,&quot;href&quot;:&quot;https:\/\/en.wikipedia.org\/wiki\/Conway%27s_Game_of_Life&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260206124258\/https:\/\/en.wikipedia.org\/wiki\/Conway%27s_Game_of_Life&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:32,&quot;href&quot;:&quot;https:\/\/sourceforge.net\/projects\/golly&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20251221195135\/https:\/\/sourceforge.net\/projects\/golly\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 11:04:10&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-09 20:19:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-12 22:35:41&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-16 19:52:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-20 02:01:59&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-24 00:15:22&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-27 00:41:45&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-03 20:07:33&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-06 21:54:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-10 18:30:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-14 16:16:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-18 16:51:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-22 08:32:15&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-26 13:35:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-30 20:41:02&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-03 02:45:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-08 00:33:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-12 05:32:26&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-16 15:32:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-20 09:40:42&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 09:40:42&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:696,&quot;href&quot;:&quot;https:\/\/github.com\/lamine2000\/game_of_life&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260206175220\/https:\/\/github.com\/lamine2000\/game_of_life&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-08 03:38:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-19 04:16:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-23 14:38:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-27 11:04:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-03 20:07:33&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-06 21:54:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-10 18:30:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-18 16:51:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-24 15:45:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-30 20:41:01&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-04 08:37:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-08 00:33:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-12 07:31:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-16 15:32:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-20 09:40:40&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 09:40:40&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img decoding="async" class="alignleft size-medium wp-image-732" src="https://learncgames.com/wp-content/uploads/2020/06/golly-300x233.png" alt="Golly - Life simulator" width="300" height="233" srcset="https://learncgames.com/wp-content/uploads/2020/06/golly-300x233.png 300w, https://learncgames.com/wp-content/uploads/2020/06/golly.png 618w" sizes="(max-width: 300px) 100vw, 300px" />An English mathematician John Conway (who died not that long ago) came up with a very simple cellular automaton that he called <a title="Link to Life on Wikipedia" href="https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life" target="_blank" rel="nofollow noopener noreferrer">Life</a>. This was back in the 1970s and I remember finding his original article in Scientific American while at University.</p>
<p>We had no internet then and I whiled away 10 or so hours trying to make my version of Life run faster. Given that this was 1978 and it was written in BASIC, it&#8217;s not surprising that it only did a couple of generations per second on a mainframe. They didn&#8217;t give us much CPU time and it was an ICL 1900. My iPhone is probably more powerful!</p>
<p>The rules are simple enough to implement but it&#8217;s unlikely you&#8217;ll outperform <a title="Link to Golly on Sourceforge" href="https://sourceforge.net/projects/golly/" target="_blank" rel="nofollow noopener noreferrer">Golly</a> which is what the image shows. That&#8217;s written in C++ and has been under near continuous development for the last 15 years.</p>
<p>But part of the fun is writing your own life simulator and watching the patterns explode. I&#8217;d call it the minecraft of its day given the amount of computing time spent on this since the 1970s. There are some amazing creations all following these three simple rules.</p>
<ul class="i8Z77e">
<li class="TrT0Xe">Any live cell with two or three live neighbours survives.</li>
<li class="TrT0Xe">Any dead cell with three live neighbours becomes a live cell.</li>
<li class="TrT0Xe">All other live cells die in the next generation. Similarly, all other dead cells stay dead.</li>
</ul>
<p>The grid is just a simple bit field. Each cell is either on or off and the rules determine if new cells are created or if patterns die out.</p>
<p>There are innumerable ones on the web. Here for example is a <a title="Link to SDL + C Life on GitHub" href="https://github.com/lamine2000/game_of_life" target="_blank" rel="nofollow noopener noreferrer">C/SDL version</a>. Note, it uses SDL1. When I get the time, I&#8217;ll build and run it. Comments are in French!</p>The post <a href="https://learncgames.com/john-conways-game-of-life/">John Conways Game of Life</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">730</post-id>	</item>
	</channel>
</rss>
