<?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>c tutorial.atoms | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/c-tutorial-atoms/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>Wed, 06 Jan 2021 22:38: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>c tutorial.atoms | 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>Next atoms tutorial added</title>
		<link>https://learncgames.com/next-atoms-tutorial-added/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=next-atoms-tutorial-added</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sat, 09 Jan 2021 00:00:31 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[c tutorial.atoms]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=2334</guid>

					<description><![CDATA[<p>The first version of the program was 90 lines long but now it has grown to 275. This includes code to let the computer play and checking code plus I&#8217;ve refactored it a bit, simplifying the code.  I haven&#8217;t extensively tested it and at least one bug has crept in. Occasionally the computer seems to [&#8230;]</p>
The post <a href="https://learncgames.com/next-atoms-tutorial-added/">Next atoms tutorial added</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;:119,&quot;href&quot;:&quot;https:\/\/github.com\/David-H-Bolton\/LearnCCode&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20250213114359\/https:\/\/github.com\/David-H-Bolton\/LearnCCode&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 11:59:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-10 22:04:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-15 22:42:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-19 03:42:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-23 00:07:14&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-27 11:04:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-02 22:28:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-06 01:11:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-09 06:32:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-14 23:28:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-24 21:49:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-28 21:29:06&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-02 12:52:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-06 03:59:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-11 22:58:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-15 00:56:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-18 04:43:26&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-21 12:23:33&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-21 12:23:33&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img fetchpriority="high" decoding="async" class="alignleft size-full wp-image-2335" src="https://learncgames.com/wp-content/uploads/2021/01/atoms2-game.png" alt="Atom2s" width="284" height="417" srcset="https://learncgames.com/wp-content/uploads/2021/01/atoms2-game.png 284w, https://learncgames.com/wp-content/uploads/2021/01/atoms2-game-204x300.png 204w" sizes="(max-width: 284px) 100vw, 284px" />The first version of the program was 90 lines long but now it has grown to 275. This includes code to let the computer play and checking code plus I&#8217;ve refactored it a bit, simplifying the code.  I haven&#8217;t extensively tested it and at least one bug has crept in. Occasionally the computer seems to claim ownership of a player cell. This stops you adding one to that cell so its not good.</p>
<p>You are welcome to have a look at the code and fix it. I will in a few days. The code is on <a title="Link to LearnC files on GitHub." href="https://github.com/David-H-Bolton/LearnCCode" target="_blank" rel="nofollow noopener">GitHub</a> and is a single file <strong>atoms2.c</strong>. As before its been compiled with Visual Studio 2019 Community edition though it should compile more or less unchanged with gcc, clang etc. It runs in a terminal/command line. You can see the computer playing in the screenshot.</p>
<p>I&#8217;ve also added <a title="Link to Tutorial two on atoms" href="https://learncgames.com/tutorials/atoms-game-tutorial-two-doing-computer-moves/" target="_blank" rel="nofollow noopener">the tutorial</a> for this.</p>The post <a href="https://learncgames.com/next-atoms-tutorial-added/">Next atoms tutorial added</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">2334</post-id>	</item>
	</channel>
</rss>
