<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Creating your own Handheld Electronic Games – Pocket Nim</title><link>/challenges-projects/project14/electronic-toys/b/blog/posts/creating-your-own-handheld-electronic-games-pocket-nim</link><description>Introduction 
 Rules of the Game 
 User Interface 
 Building It 
 How does it Work? 

 The user_play Function 
 The computer_play Algorithm 
 Interrupt Function (fast_ticks) 


 How was it created? 
 Cheating 
 Hardware Design 
 Prototype PCB 
 PCB and</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Creating your own Handheld Electronic Games – Pocket Nim</title><link>https://community.element14.com/challenges-projects/project14/electronic-toys/b/blog/posts/creating-your-own-handheld-electronic-games-pocket-nim</link><pubDate>Sat, 07 Sep 2019 01:15:10 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:66a578b9-b7d2-4c44-852d-511577aa570a</guid><dc:creator>shabaz</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;I got fed up never knowing what switch to use.. so I&amp;#39;ve collected up all the various ones I had, and finally organized them.&lt;/p&gt;&lt;p&gt;They are all low-cost ones, so ideal for basic projects. Farnell part numbers are in the photo below too. The red circled one is a convenient power switch for low-power projects, the yellow circled one is good as a reset button on PCBs, I use that one all the time.&lt;/p&gt;&lt;p&gt;The ones that suit typical round low-cost plastic button caps, are circled in green and blue. The button caps fit tight and slightly higher up on the green circled switches. The caps need gluing if used with the blue circled switches.&lt;/p&gt;&lt;p&gt;For the green circled ones (Multicomp), the button caps are about 2mm higher than for the blue circled ones (Omron).&lt;/p&gt;&lt;p&gt;For the ones with no circles, I have not found any low-cost round button caps that are easily available. (Round being more useful to me than square, since a drill can be used for the enclosure, rather than cutting out squares. &lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/896x868/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-66a578b9-b7d2-4c44-852d-511577aa570a/4331.contentimage_5F00_204450.jpg:896:868]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7722&amp;AppID=238&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating your own Handheld Electronic Games – Pocket Nim</title><link>https://community.element14.com/challenges-projects/project14/electronic-toys/b/blog/posts/creating-your-own-handheld-electronic-games-pocket-nim</link><pubDate>Fri, 06 Sep 2019 05:02:15 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:66a578b9-b7d2-4c44-852d-511577aa570a</guid><dc:creator>fyaocn</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Really great work well done.&lt;/p&gt;&lt;p&gt;Even share each step in detail.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7722&amp;AppID=238&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating your own Handheld Electronic Games – Pocket Nim</title><link>https://community.element14.com/challenges-projects/project14/electronic-toys/b/blog/posts/creating-your-own-handheld-electronic-games-pocket-nim</link><pubDate>Thu, 05 Sep 2019 19:30:45 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:66a578b9-b7d2-4c44-852d-511577aa570a</guid><dc:creator>three-phase</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Another great project and write up to add to your ever expanding list. Very informative and easy to follow.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Kind regards.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7722&amp;AppID=238&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating your own Handheld Electronic Games – Pocket Nim</title><link>https://community.element14.com/challenges-projects/project14/electronic-toys/b/blog/posts/creating-your-own-handheld-electronic-games-pocket-nim</link><pubDate>Thu, 05 Sep 2019 17:48:54 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:66a578b9-b7d2-4c44-852d-511577aa570a</guid><dc:creator>stevesmythe</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I&amp;#39;m very impressed. A wholly original project designed and built from scratch to a high standard.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;BTW, I used to love Byte magazine. Did you ever get that in your local shop?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7722&amp;AppID=238&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating your own Handheld Electronic Games – Pocket Nim</title><link>https://community.element14.com/challenges-projects/project14/electronic-toys/b/blog/posts/creating-your-own-handheld-electronic-games-pocket-nim</link><pubDate>Thu, 05 Sep 2019 16:06:48 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:66a578b9-b7d2-4c44-852d-511577aa570a</guid><dc:creator>ralphjy</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Very nicely done in all aspects and awesome documentation.&amp;nbsp; I wondered about the cutouts while watching the video.&amp;nbsp; A good application for CNC &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-66a578b9-b7d2-4c44-852d-511577aa570a/contentimage_5F00_938.png:16:16]&lt;/span&gt;!&amp;nbsp; You did such a good job that I thought that the PCB manufacturer had done it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Love to watch you and Frank and others mentoring the kids.&amp;nbsp; Gives them a great approach to learning.&amp;nbsp; I always used to read Scientific American at the library but will admit to not continuing in my adult years.&amp;nbsp; I&amp;#39;ll need to check out what the current version looks like.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Ralph&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7722&amp;AppID=238&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating your own Handheld Electronic Games – Pocket Nim</title><link>https://community.element14.com/challenges-projects/project14/electronic-toys/b/blog/posts/creating-your-own-handheld-electronic-games-pocket-nim</link><pubDate>Thu, 05 Sep 2019 15:08:44 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:66a578b9-b7d2-4c44-852d-511577aa570a</guid><dc:creator>genebren</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;shabaz,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Great project and write-up.&amp;nbsp; I too am a big fan of Martin Gardner.&amp;nbsp; I have a couple of his books which are collections of his earlier columns and writings.&amp;nbsp; Some absolutely stuff in those books.&amp;nbsp; I will have to dust them off and read through them again.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Great work!&amp;nbsp; It was nice to here your nephews sounding so happy playing (and winning) with the new game.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Gene&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7722&amp;AppID=238&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating your own Handheld Electronic Games – Pocket Nim</title><link>https://community.element14.com/challenges-projects/project14/electronic-toys/b/blog/posts/creating-your-own-handheld-electronic-games-pocket-nim</link><pubDate>Thu, 05 Sep 2019 10:26:48 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:66a578b9-b7d2-4c44-852d-511577aa570a</guid><dc:creator>dubbie</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Shabaz,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;A great project and a great game. I am also a great fan of BlueTac for fixing components in place when soldering, and I must get one of those wire stripping tools.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dubbie&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7722&amp;AppID=238&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating your own Handheld Electronic Games – Pocket Nim</title><link>https://community.element14.com/challenges-projects/project14/electronic-toys/b/blog/posts/creating-your-own-handheld-electronic-games-pocket-nim</link><pubDate>Thu, 05 Sep 2019 06:22:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:66a578b9-b7d2-4c44-852d-511577aa570a</guid><dc:creator>balearicdynamics</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Great project. I loved Marting Gardner with his Scientific American columns by 1980. September 1980 was the first issue of Scientific American published in Italy. Then during the &amp;#39;90s I bought tons of the previous issues in English. And all the Martin Gardner published books &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-66a578b9-b7d2-4c44-852d-511577aa570a/contentimage_5F00_2516.png:16:16]&lt;/span&gt; Nim and Go seems to e the two strategy games loved by Gardner and his columns I read when I was young introduced me to the exam of Games Theory at the University. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;With a small extension - without changing the design nor the logic of your box - adding a couple of connectors (and probably a few lines of code) it will be nice to explore who win putting two devices one against the other. If I am not wrong, there is an algorithm that gives a high winning probability to one of the two players, the one who starts last (maybe). Nim is great yet simple game as there is not a winning strategy, like tris instead.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Enrico&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7722&amp;AppID=238&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating your own Handheld Electronic Games – Pocket Nim</title><link>https://community.element14.com/challenges-projects/project14/electronic-toys/b/blog/posts/creating-your-own-handheld-electronic-games-pocket-nim</link><pubDate>Thu, 05 Sep 2019 06:15:35 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:66a578b9-b7d2-4c44-852d-511577aa570a</guid><dc:creator>koudelad</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Very well written. Great build!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7722&amp;AppID=238&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating your own Handheld Electronic Games – Pocket Nim</title><link>https://community.element14.com/challenges-projects/project14/electronic-toys/b/blog/posts/creating-your-own-handheld-electronic-games-pocket-nim</link><pubDate>Thu, 05 Sep 2019 05:41:39 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:66a578b9-b7d2-4c44-852d-511577aa570a</guid><dc:creator>fmilburn</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Great project and write-up Shabaz!&amp;nbsp; I know your nephews really enjoyed it.&amp;nbsp; Just Awesome :-)&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=7722&amp;AppID=238&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>