<?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>RubyLearning Blog &#187; Joseph Wilk</title>
	<atom:link href="http://rubylearning.com/blog/author/josephwilk/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubylearning.com/blog</link>
	<description>Helping Ruby Programmers become Awesome</description>
	<lastBuildDate>Tue, 21 May 2013 02:40:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>RPCFN: Japanese Mosaic Problem (#14)</title>
		<link>http://rubylearning.com/blog/2010/10/01/rpcfn-japanese-mosaic-problem-14/</link>
		<comments>http://rubylearning.com/blog/2010/10/01/rpcfn-japanese-mosaic-problem-14/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 00:21:55 +0000</pubDate>
		<dc:creator>Joseph Wilk</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[RPCFN]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Joseph Wilk]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Programming Challenge For Newbies]]></category>
		<category><![CDATA[The Ruby Programming Language]]></category>

		<guid isPermaLink="false">http://rubylearning.com/blog/?p=4892</guid>
		<description><![CDATA[Send to Kindle Ruby Programming Challenge For Newbies RPCFN: Japanese Mosaic Problem (#14) By Joseph Wilk About Joseph Wilk Joseph Wilk is a member of the core development team for Cucumber. He has been developing for the web for over 10 years in both big and small companies and as an entrepreneur. After stints working [...]<p><a href="http://www.launchbit.com/az/113-209/"><img width="468" height="60" src="http://www.launchbit.com/az-images/113-209/" /></a><br />
<small>(Powered by <a href="http://www.launchbit.com/lb/113-209/">LaunchBit</a>)</small></p>
]]></description>
				<content:encoded><![CDATA[<div class='kindleWidget kindleLight' ><img src="http://rubylearning.com/blog/wp-content/plugins/send-to-kindle/media/black-25.png" /><span>Send to Kindle</span></div><p></p>
<div class="topsy_widget_data topsy_theme_brick-red" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Frubylearning.com%252Fblog%252F2010%252F10%252F01%252Frpcfn-japanese-mosaic-problem-14%252F%22%2C%20%22shorturl%22%3A%20%22http%3A%2F%2Fbit.ly%2FaER9pO%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22RPCFN%3A%20Japanese%20Mosaic%20Problem%20%28%2314%29%22%20%7D);"></div>
<div>
<h3>Ruby Programming Challenge For Newbies</h3>
<h4>RPCFN: Japanese Mosaic Problem (#14)</h4>
<h5>By Joseph Wilk</h5>
<h3>About Joseph Wilk</h3>
<p class="block"><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  class="alignright" title="Joseph Wilk" src="http://rubylearning.com/images/josephwilk.jpeg" alt="Joseph Wilk" /> Joseph Wilk is a member of the core development team for Cucumber. He has been developing for the web for over 10 years in both big and small companies and as an entrepreneur. After stints working with Java and Python he finally found Ruby. He now spends his time in-between eating Cucumbers working at Songkick.com. Having more fun than is healthy working as a Software Gardener building web systems, working on open source projects and giving talks around the world about testing. He suffers from test obsession and has given up hope of any treatment.</p>
<p>Joseph Wilk has this to say about the challenge:</p>
<blockquote><p>The Japanese Mosaic problem is a logic puzzle based on a grid with the cells potentially containing numbers ranging 0 to 9. The numbers reflect for a cell how many of its neighbours and itself are shaded in. The fun aspect of these problems is once solved you end up with some pretty ASCII art. You&#8217;re challenge is to write an algorithm to solve any mosaic puzzle. The challenge provides the opportunity to explore data structures to represent the problem space and looking at how we can navigate the structure in search of a solution. There are lots of opportunities to also think about the efficiency in searching for a solution. A Cucumber feature has already been written for you with lots of scenarios exploring through examples the rules of the Japanese Mosaic problem. If you are not familiar with Cucumber checkout <a href="http://cukes.info/">http://cukes.info/</a>. This Cucumber feature is both your specification and your executable tests. You&#8217;re mission is to get all the Scenarios passing. There are many ways to solve the problem and I look forward to seeing how people tackle these in the different languages. Good luck and safe Cuking.</p>
</blockquote>
<h3>Prizes</h3>
<ul>
<li>The participant with the best Ruby solution (if there is a tie between answers, then the one who posted first will be the winner) will be awarded any <b>one</b> of PeepCode&#8217;s <a href="http://peepcode.com/screencasts/ruby-on-rails">Ruby on Rails screencasts</a>.</li>
<li>From the remaining working Ruby solutions, three participants would be selected randomly and each one would be awarded any <b>one</b> of Pragmatic&#8217;s <a href='http://www.pragprog.com/screencasts/v-dtrubyom/the-ruby-object-model-and-metaprogramming'>The Ruby Object Model and Metaprogramming</a> screencasts.</li>
</ul>
<p>The four persons who win, can&#8217;t win again in the next immediate challenge but can still participate.</p>
<h3 style="color:#0000FF;">The Ruby Challenge</h3>
<p><img class="alignright" src='http://rubylearning.com/images/rubypc.jpg' style="border: 0px none ;;  float: right; padding: 4px; margin: 0 0 2px 7px;" alt="RPCFN" title="Ruby Programming Challenge For Newbies" /></p>
<h4>The Challenge</h4>
<p>All the instructions and the code to get you started are in a Github repository: <a href="http://github.com/josephwilk/japanese-mosaic-logic-puzzle">http://github.com/josephwilk/japanese-mosaic-logic-puzzle</a></p>
<h3 style="color:#0000FF;">How to Enter the Challenge</h3>
<p>Read the <a href="http://rubylearning.com/blog/ruby-programming-challenge-faq/index.php#rpc6">Challenge Rules</a>. By participating in this challenge, you agree to be bound by these Challenge Rules. <b>It&#8217;s free and <a href="http://rubylearning.com/blog/wp-login.php?action=register">registration</a> is optional</b>. You can enter the challenge just by posting the following as a comment to this blog post:</p>
<ol>
<li>Your name:</li>
<li>Country of Residence:</li>
<li><a href="http://rubylearning.com/blog/ruby-programming-challenge-faq/#rpc5">GIST URL of your Solution</a> (i.e. Ruby code) with explanation and / or test cases:</li>
<li>Code works with Ruby 1.8 / 1.9 / Both:</li>
<li>Email address (will not be published):</li>
<li>Brief description of what you do (will not be published):</li>
</ol>
<p><b>Note</b>:</p>
<ul>
<li>As soon as we receive your GIST URL, we will fork your submission. This means that your solution is frozen and accepted. Please be sure that is the solution you want, as it is now recorded in time and is the version that will be evaluated.</li>
<li>All solutions posted would be hidden to allow participants to come up with their own solutions.</li>
<li><b>You should post your entries before midnight of 31st Oct. 2010 (Indian Standard Time). No new solutions will be accepted from 1st Nov. onwards.</b></li>
<li>On 1st Nov. 2010 all the solutions will be thrown open for everyone to see and comment upon.</li>
<li>The winning entries will be announced on this blog in the first week of Nov. 2010. The winners will be sent their prizes by email.</li>
</ul>
<h3>More details on the RPCFN?</h3>
<p>Please refer to the <b><a href="http://rubylearning.com/blog/ruby-programming-challenge-faq/">RPCFN FAQ</a></b> for answers to the following questions:</p>
<ul>
<li><a href="http://rubylearning.com/blog/ruby-programming-challenge-faq/index.php#rpc1">What Is The Ruby Programming Challenge For Newbies (RPCFN)?</a></li>
<li><a href="http://rubylearning.com/blog/ruby-programming-challenge-faq/index.php#rpc2">How does RPCFN benefit you?</a></li>
<li><a href="http://rubylearning.com/blog/ruby-programming-challenge-faq/index.php#rpc6">Challenge Rules</a></li>
<li><a href="http://rubylearning.com/blog/ruby-programming-challenge-faq/index.php#rpc3">Best Solution</a></li>
<li><a href="http://rubylearning.com/blog/ruby-programming-challenge-faq/index.php#rpc4">Can I Submit A Ruby Programming Challenge Topic?</a></li>
</ul>
<h3>Donations</h3>
<p>RPCFN is entirely financed by RubyLearning and sometimes sponsors, so if you enjoy solving Ruby problems and would like to give something back by helping with the running costs then any donations are gratefully received.</p>
<p><a href='http://www.pledgie.com/campaigns/12553'><img alt='Click here to lend your support to: Support RubyLearning With Some Love and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/12553.png?skin_name=chrome' style='border:0px;' /></a></p>
<h3>Acknowledgements</h3>
<p>Special thanks to:</p>
<ul>
<li><a href="http://blog.josephwilk.net/">Joseph Wilk</a>.</li>
<li><a href="http://github.com/">GitHub</a>, for giving us access to a private repository on GitHub to store all the submitted solutions.</li>
<li>The RubyLearning team.</li>
</ul>
<h3>Questions?</h3>
<p>Contact Satish Talim at satish [dot] talim [at] gmail.com OR if you have any doubts / questions about the challenge (the current problem statement), please post them as comments to this post and the author will reply asap.</p>
<h3>The Participants</h3>
<h4>In the competition</h4>
<ul>
<li>Manuel Korfmann</li>
</ul>
<h3 style="color:#0000FF;">The Winner</h3>
<p><img class="alignright" src='http://rubylearning.com/images/winner_icon_1.png' style="border: 0px none ;;  float: right; padding: 4px; margin: 0 0 2px 7px;" alt="Winners" /></p>
<p>Congratulations to the winner of this Ruby Challenge. He is:</p>
<ul>
<li><b>Manuel Korfmann</b> who was the only submitter and winner of this final challenge.</li>
</ul>
<h3>Previous Challenge</h3>
<p><a href="http://rubylearning.com/blog/2010/08/31/rpcfn-economics-101-13/">RPCFN: Economics 101 (#13)</a> by Dr. Bruce Scharlau.</p>
<p><b>Note</b>: All the previous challenges, sponsors and winners can be seen on the <a href="http://ruby-challenge.rubylearning.org/">Ruby Programming Challenge for Newbies</a> page.</p>
</div>
<p>Technorati Tags: <a href="http://technorati.com/tag/Ruby" rel="tag">Ruby</a>, <a href="http://technorati.com/tag/The+Ruby+Programming+Language" rel="tag">The Ruby Programming Language</a>, <a href="http://technorati.com/tag/Programming+Challenge+For+Newbies" rel="tag">Programming Challenge For Newbies</a>, <a href="http://technorati.com/tag/Programming" rel="tag">Programming</a>, <a href="http://technorati.com/tag/Joseph+Wilk" rel="tag">Joseph Wilk</a></p>
Posted by <b>Joseph Wilk</b><p><a href="http://www.launchbit.com/az/113-209/"><img width="468" height="60" src="http://www.launchbit.com/az-images/113-209/" /></a><br />
<small>(Powered by <a href="http://www.launchbit.com/lb/113-209/">LaunchBit</a>)</small></p>

]]></content:encoded>
			<wfw:commentRss>http://rubylearning.com/blog/2010/10/01/rpcfn-japanese-mosaic-problem-14/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>
