Thanks Jonathon.  Those are good ideas, but unfortunately that email sent to the list (which is the default reply), so we can't use them.  If anyone else sends anything, please make sure you send to me instead of using reply.<br>
<br><div class="gmail_quote">On 6 May 2011 16:54, Jonathon Horsman <span dir="ltr"><<a href="mailto:jonathon@arctickiwi.com">jonathon@arctickiwi.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Andrew<div><br></div><div>Sounds like fun. Here's some ideas for holes:</div><div><br></div><div>A method which replaces all unquoted new lines in a string into "<br/>"</div><div>A CSV parser which handles single and double quotes and new lines</div>

<div>A method which, given a letter, returns the next letter in the opposite case (e.g. "s" returns "T", "D" returns "e", "Z" returns "a")</div><div>A password generator which creates 8 character passwords which contains no duplicate characters</div>

<div>An implementation of array sort</div><div><br></div><div>Looking forward to it</div><div><br></div><div>Jonathon<br><br><div class="gmail_quote"><div><div></div><div class="h5">On 6 May 2011 16:23, Andrew McDonough <span dir="ltr"><<a href="mailto:andrew@andrewmcdonough.co.uk" target="_blank">andrew@andrewmcdonough.co.uk</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">Hi everyone,<br>
<br>
I just want to give you a bit more information about the Ruby Golf<br>
evening at LRUG on Monday.  As mentioned previously, you will be<br>
working in teams to solve 9 'holes'.  Leaving time for an introduction<br>
and some time at the end to collect the scores,  we will probably only<br>
get 45mins of coding time so the challenges will all need to be fairly<br>
simple (4-5 mins each).  Some other code golf competitions have<br>
complex scoring where each individual hole is scored with points for<br>
completion and number of characters relative to other teams, but to<br>
make sure it runs smoothly on the night, given the time constraints,<br>
we'll be running a really simple system:<br>
<br>
1. The winning team must have completed all holes (with all tests<br>
passing).  This is more important than the character count.<br>
2. Of those teams who have completed all holes, the winner is the team<br>
with fewest characters in the entire class (all nine holes).<br>
3. We won't count whitespace in the class, to make the solutions<br>
easier to demonstrate.<br>
<br>
We can run further breakdowns on the mailing list afterwards, as I<br>
will ask people to fork the repo and commit their solutions to their<br>
fork.  If there are any particularly elegant solutions, we might ask<br>
people to demonstrate on the evening if there is spare time.<br>
<br>
So that you know exactly what you are getting, I have put an example<br>
course with one hole up on github:<br>
<br>
<a href="https://github.com/andrewmcdonough/rubygolf-example" target="_blank">https://github.com/andrewmcdonough/rubygolf-example</a><br>
<br>
You'll need ruby 1.8.7 and RSpec 1.3.  If you clone the repository and<br>
run 'rake', you will see the tests fail.  Now have a look at the specs<br>
in spec/golf_spec.rb.  You need to write the method to implement the<br>
.hole1 method in lib/golf.rb.  When you have done this, run rake again<br>
to see if you have successfully completed the hole. If you complete<br>
the course, it will also tell you a character count.  When the course<br>
is passed, you can refactor to reduce the character count.<br>
<br>
As well as the LRUG ruby golf evening, James Almond from Sheffield<br>
Ruby User Group contacted me, and they (ShRUG) are going to run a ruby<br>
golf evening on the same day, possibly using the same course, so we<br>
can compare solutions afterwards.  We will use the same hashtag,<br>
#rubygolf, for both meetings.<br>
<br>
I haven't had many suggestions for holes, so if you do have any ideas<br>
for a simple problem that would take 4-5 minute to solve, please mail<br>
me off the list.  You don't need to write the specs, just describe the<br>
idea and if I use it, I'll give you credit at the meeting.<br>
<br>
Thanks,<br>
<br>
Andrew<br>
<br>
---<br>
</div></div><font color="#888888"><div><div></div><div class="h5">Andrew McDonough<br>
CTO, Tribesports<br>
<a href="http://tribesports.com" target="_blank">http://tribesports.com</a><br></div></div><div class="im">
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</div></font></blockquote></div><br><br clear="all"><br>-- <br>Jonathon Horsman<br>Director - Arctic Kiwi<br>Mobile: 079 42366038<br>Web: <a style="color:rgb(0, 153, 0)" href="http://www.arctickiwi.com" target="_blank">http://www.arctickiwi.com</a><div>

Twitter: <a style="color:rgb(0, 153, 0)" href="http://www.twitter.com/arctickiwi" target="_blank">http://www.twitter.com/arctickiwi</a><br><img><br></div><br>

</div>
<br>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br>