dinsdag 20 oktober 2009

QNH GameRace 2009

This year there was no RADRace, instead QNH organised the GameRace 2009.
I entered with my colleague Jamie Craane.

We chose to use Java and Groovy.

One of the challenges was to make a pong player application which could get information from the gameserver and act accordingly to bounce the ball back.

After the first day, completing some of the other challenges we had just begun on solving the pong puzzle. One tactic is just to try to get the pad to match the Y-position of the ball. But, there is another way.

During the trip back home we started to think about possible ways to predict where the ball would hit the X=0 line after it had left our pad. The first draft of the algorithm we came up with looked somewhat like this :

predictYpos = ( ( ballXpos- ( gameFieldWidth * 2 ) ) * abs(ballXtep) / abs(ballYstep) % gameFieldHeight ) + ballYPos

this was not a bad start but it only works if the ball is moving in positive x and y direction.

This is about the implementation of the algorithm we used, in the past couple of days we have updated this algorithm and written some code to make the perfect pong player!

Will post code soon...

donderdag 19 maart 2009

Error'd @ tropenmuseum



VOC ships , from left to right : "you can now" , "safely turn off your computer"

Google streetview



Its a good thing Google protects privacy by blurring out licence plates!