Install Theme

Your web-browser is very outdated, and as such, this website may not display properly. Please consider upgrading to a modern, faster and more secure browser. Click here to do so.

Surrey Rubyists

Surrey (UK) based User Group for all things Ruby.
Jun 3 '11

#3 Tuesday 28th June - Update

I’ve found it hard to find speakers this month so we’re going to do something a little different this time. This month we are holding the very first Surrey Rubyists Coding Competition!

Competition Overview

We will be playing a well known turn based game. You will need to implement an AI player in Ruby for this game within the time allowed. Then we have a knock-out competition where these players fight to the death until one winner is left standing. 

You can join as individuals or pairs. If you are a newbie, you’re welcome to join in of course. I’m sure there will be an experienced Rubyists that will be happy to pair up with you if you would like to.

After the competition is over (time permitting) we can take a look at the winning entry and see what we can all learnt.

This should be a fun and entertaining evening so tell your friends!

What you need

You (or your pair) will need the following to be able to participate:

  • A laptop (PC or Mac)
  • Ruby 1.9.2 installed
  • A text editor

More Details

On the night I will give full details of the game and what the game rules are. It’s a well known game and the rules are very simple.

For now, I can tell you that you will need to create a class that implements three methods. When your player is playing in a match, these methods will be called at various points by the main game framework program that I have created (o_O). The game continues with each player taking a turn until there is a winner. The winner of the game moves through to the next round.

You are free to implement your player however you see fit, but the following rules will apply:

  • If your code raises an exception, you lose the game!
  • Don’t use reflection or similar technique to get or affect information held in the main game framework program.
  • Feel free to use gems for testing etc, but lets avoid any gems that directly solve the problem ;o)

Where and when?

The Bridge Barn pub in Woking (Bridge Barn Beefeater & Premier Inn, Bridge Barn Lane, Woking, GU21 6NL). Here’s the map on Tuesday 28th June. The games will begin at 7:00pm so get there a bit before so you can set-up.

Registration

You can register your place for this free event here: http://surreyrubyists3.eventbrite.com/

View comments

Blog comments powered by Disqus