<?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>Hazel McKendrick &#187; competition</title>
	<atom:link href="http://hazelmckendrick.com/journal/tag/competition/feed" rel="self" type="application/rss+xml" />
	<link>http://hazelmckendrick.com</link>
	<description>Programming and Games Technology Portfolio</description>
	<lastBuildDate>Mon, 20 Jun 2011 17:44:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Search For A Star Competition</title>
		<link>http://hazelmckendrick.com/journal/search-for-a-star-competition</link>
		<comments>http://hazelmckendrick.com/journal/search-for-a-star-competition#comments</comments>
		<pubDate>Wed, 10 Mar 2010 17:34:37 +0000</pubDate>
		<dc:creator>Hazel</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Aardvark Swift]]></category>
		<category><![CDATA[Asteroids]]></category>
		<category><![CDATA[competition]]></category>
		<category><![CDATA[Search for a Star]]></category>

		<guid isPermaLink="false">http://hazelmckendrick.com/?p=1859</guid>
		<description><![CDATA[Shortly before Christmas, students in my class were invited to participate in Aardvark Swift&#8217;s Search For A Star, a games related programming competition split over several knock-out rounds. Although the first round was taking place on the day before an exam, myself and two other students from Abertay took part. This round involved answering ten [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://hazelmckendrick.com/wp-content/uploads/2010/03/521027252_cffd1603f7.jpg"><img src="http://hazelmckendrick.com/wp-content/uploads/2010/03/521027252_cffd1603f7-300x201.jpg" alt="" title="521027252_cffd1603f7" width="300" height="201" class="alignleft size-medium wp-image-1862" /></a>Shortly before Christmas, students in my class were invited to participate in <a href="http://www.aswift.com/html/minisites/index.jsp?minisiteId=177&#038;pageId=180">Aardvark Swift&#8217;s Search For A Star</a>, a games related programming competition split over several knock-out rounds.  </p>
<p>Although the first round was taking place on the day before an exam, myself and two other students from Abertay took part. This round involved answering ten programming questions: 9 based on the C++ language and a final question focussing more on object oriented design.  <span id="more-1859"></span></p>
<p>I wasn&#8217;t sure what to expect beforehand (other than a vague notion that reversing a string in place might be involved) but found actually sitting the test to be quite a relief!  Although I wasn&#8217;t 100% sure all my answers were spot on, there weren&#8217;t any concepts which I was unfamiliar with.  It certainly increased my confidence (or at least reduced my sheer terror) concerning programming tests I might face when applying for a job.</p>
<p>I was pleasantly surprised to be told that I was one of the eleven programmers who had reached the second round, a more open-ended programming task.  For this we were given an uncompleted and incorrect Asteroids like game, and tasked with fixing and improving it within seven days.  Working with someone else&#8217;s code was an interesting exercise, and I aimed to uphold their programming style and standards as much as possible.  I hadn&#8217;t touched DirectX or DirectInput in some time, but I didn&#8217;t find it hard to get back into; nothing in the codebase was particularly surprising or unfamiliar.</p>
<p>The only downside of the problem was the short timespan, as I also had coursework deadlines and continued work with Digital Colony and on my dissertation to contend with.  I successfully submitted a corrected and improved application, however it would have been nice to dedicate more of my time.  I&#8217;m still waiting on the results of this stage, so I will of course update the blog when I hear back.  Since I worked on someone else&#8217;s codebase I&#8217;m unsure whether posting screenshots of the application is acceptable, however I may also follow up with those at a later date after seeking permission.</p>
<p><i>Image used under Creative Commons license from <a href="http://www.flickr.com/photos/pchee/521027252/">Computer Science Geek</a>.</i></p>
]]></content:encoded>
			<wfw:commentRss>http://hazelmckendrick.com/journal/search-for-a-star-competition/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Not Quite Coding At The Speed Of Thought</title>
		<link>http://hazelmckendrick.com/journal/not-quite-coding-at-the-speed-of-thought</link>
		<comments>http://hazelmckendrick.com/journal/not-quite-coding-at-the-speed-of-thought#comments</comments>
		<pubDate>Fri, 13 Mar 2009 10:37:53 +0000</pubDate>
		<dc:creator>Hazel</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[competition]]></category>
		<category><![CDATA[pseudocode]]></category>
		<category><![CDATA[realtime worlds]]></category>
		<category><![CDATA[Screw The Nut]]></category>
		<category><![CDATA[students]]></category>

		<guid isPermaLink="false">http://killercodingninjabunny.com/?p=769</guid>
		<description><![CDATA[Last Saturday, the programmers from Screw The Nut (Andrew, Deji, Ian, Phil and I) took part in the first Realtime Worlds student programming competition. It was the first time any of us had attempted something like this, so although we had some vague plans before the day began, we didn&#8217;t really know what to expect. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://killercodingninjabunny.com/wp-content/uploads/2009/03/img_20731.jpg"><img src="http://killercodingninjabunny.com/wp-content/uploads/2009/03/img_20731-300x225.jpg" alt="img_20731" title="img_20731" width="300" height="225" class="alignright size-medium wp-image-773" /></a>Last Saturday, the programmers from Screw The Nut (<a href='http://www.andrewglass.co.uk/'>Andrew</a>, Deji, <a href="http://icopland.swifthost.net/">Ian</a>, <a href="http://nistur.com/">Phil</a> and I) took part in the first <a href="http://www.realtimeworlds.com/">Realtime Worlds</a> student programming competition.  It was the first time any of us had attempted something like this, so although we had some vague plans before the day began, we didn&#8217;t really know what to expect.</p>
<p>The basic format of the competition was that around seven teams from various universities were each given one computer between the five members.  After a basic practice question to check we could correctly read the output and would be able to submit our answers, we were given three hours to solve three further problems. Finally, at the end of the day we were tasked with writing AI for a spaceship to complete an Asteroids-like game, which the competed against the other teams.</p>
<p>For each of the three questions our team managed to agree upon a solution and write out the psuedocode required to implement it.  What really took time was actually writing out and testing our solutions.  Being so pressed for time really emphasises the amount of overhead involved in writing in C++.  Creating functions involves either writing prototypes for them or ensuring they&#8217;re all written in order, and finding one again means using Ctrl-F or searching through the file.  The obvious way to make things neater would normally be to create multiple files, but that becomes almost unthinkable when you consider the overhead involved in writing headers.  Then you come to testing the project &#8211; the compile time really adds up.  Don&#8217;t get me wrong, all the teams were working in the same conditions (we were also given the option of using C# &#8211; I&#8217;m not sure if this would have improved the situation or not), but at any rate, at the end of the three hours we only had one solution to submit.</p>
<p><a href="http://killercodingninjabunny.com/wp-content/uploads/2009/03/img_20751.jpg"><img src="http://killercodingninjabunny.com/wp-content/uploads/2009/03/img_20751-300x186.jpg" alt="img_20751" title="img_20751" width="300" height="186" class="alignleft size-medium wp-image-774" /></a></p>
<p>The second section of the competition (creating the game AI) went better. Knowing we would be short of time we focused on creating the most simple working solution we could &#8211; staying in one position, rating asteroids based on several criteria and shooting the highest rated one.  As it turns out, most of the criteria we calculated were almost useless, or even hindered the spaceship &#8211; far more important than anything else was shooting the closest asteroid to the player.  Our ship did very well in round one, but unfortunately we hadn&#8217;t considered what would happen at the end of the level when no asteroids remained, and we crashed out of the competition leaving two ships to continue through the next rounds.</p>
<p>At the end of the day things were looking a little bleak &#8211; we had had fun but given all the teams had successfully submitted more solutions than us and we knew ours wasn&#8217;t perfect, so we were hugely surprised to find we came in 3rd place, winning Amazon vouchers.  Hopefully the competition will take place again next year as we now have a far better understanding of how we&#8217;d take part.</p>
<h3>Things we learned:</h3>
<ul>
<li>Don&#8217;t enforce time limits for each problem unless things aren&#8217;t working &#8211; one working solution is better than several non-working solutions.</li>
<li>A quick solution which works in most cases is better than a perfect lengthy solution which will take a long time to implement.</li>
<li>Don&#8217;t try to solve problems at the computer &#8211; just type up pseudocode.</li>
<li>There are tasks one person can do while the rest of the team is working on the first solution, for example reading in the input into data structures.</li>
<li>Global data works just fine.</li>
<li>Working with people you know well is far easier than getting a group together &#8211; no matter how brilliant they are.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://hazelmckendrick.com/journal/not-quite-coding-at-the-speed-of-thought/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

