This year the journal freiesMagazin organized the third contest in a series. This time it’s about programming an AI for a predator-prey-like game. I just submitted my short solution.

As I said, it’s the third programming contest. The first one was about switching gems and in the second contest it was the goal to navigate a robot through a factory. I didn’t got the announce of the first one and missed the second one as a consequence of a lack of time. Hence it’s a premiere for me!

Citing their introduction:

Same procedure as every day: It is late in the evening and you're still sitting at your office desk and listening to some music. Suddenly a siren sounds through all rooms, the doors are closing automatically and you cannot open them anymore. A light green mist appears and some creepy shapes wander around the hall. Sometimes you really hate Mondays …

So, at the beginning of the game all programmed bots are in the same team. After some time one of them changes to the opposite team, trying to catch one of the other while the other ones are fleeing. Simple and clear. It’s running through sockets and the bot-programmers can win vouchers. More information can be found at their website.

On one hand I’m interested in socket programming since a while and on the other hand I’m of course interested in the voucher, so I decided to take part in the contest although there are enough other things to do for me. I agreed with myself to put about two days of work into it. In the end I worked about three days, but however, I could program about 365 more. If you take a look at the code it’s kept more or less simple and many functions aren’t in use. For example I track a motion profile of each opponent, but when I’m predator I don’t care about it. It would be more promising to predict a actual position of a prey (for example with neural networks or something like that) instead of searching without any profoundness. But this would go beyond my scope…

So lets see how many people are also joining this contest. The result will be published mid-January. At least I’m last, but that’s not wicked. I had a lot of fun and even learned something. That’s the main thing. It’s taking part that counts! ;-)

I attached my bot, it’s licensed under GPLv3. In some further articles I’ll explain some smart details of my code, I think some of them are quiet nice to know.

Download: Java: Repository @ GitHub (Please take a look at the man-page. Browse bugs and feature requests.)

Martin Scharm

stuff. just for the records.


6 Comments

Martin S. | Permalink | 2010-12-20 21:35:05

I wish you success!

Yeah, Top Ten! | Permalink | 2010-12-21 00:06:45

[…] I announced in my previous article, I took part in a contest. And, what should I say, I’m one of the six best programmer – […]

FM-Contest: Tactics | Permalink | 2010-12-21 10:14:18

[…] I announced in my last article I’ve submitted a programmed bot for the contest organized by freiesMagazin. Here I present my […]

FM-Contest: Mappings | Permalink | 2010-12-22 08:53:46

[…] As you know, I took part in the programming contest organized by freiesMagazin. I still presented the tactics of my bot, here is how I parse the maps. […]

YEAH – second in fM contest | Permalink | 2011-01-09 14:36:51

[…] I announced I took place in a programming contest organized by freiesMagazin. In the end I’m proud to […]

freiesMagazin 02/2011 published | Permalink | 2011-02-06 13:20:49

[…] The journal freiesMagazin just published it’s February issue, describing all the bots that took part in the programming contest. […]

Post a comment

read more about submitting comments