Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[QUIZ] RRobots (#59)

1 view
Skip to first unread message

Ruby Quiz

unread,
Dec 16, 2005, 8:29:31 AM12/16/05
to
The three rules of Ruby Quiz:

1. Please do not post any solutions or spoiler discussion for this quiz until
48 hours have passed from the time on this message.

2. Support Ruby Quiz by submitting ideas as often as you can:

http://www.rubyquiz.com/

3. Enjoy!

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

by Simon Kroeger

RRobots, Inc. is always looking for new talented pilots. Recently they lost so
many skilled employees in a show battle against one of their competitors that
they decided to try something new.

Don't be afraid, you don't have to lead a robot into the fight personally.
RRobots, Inc. is asking you to write an AI for one of their bots. You will be
provided with a programming interface and as many shiny new robots as you may
need to test your creation.

All bots have a body equipped with a powerful engine and robust plating, a gun
capable of firing energy bullets of various strengths, and a radar to scan the
battlefield for enemy bots.

Battles take place in an arena, 1600m by 1600m, each robot is placed at a
randomly chosen position and powered on simultaneously. For this test all
fights are one-on-one, so if you scan something it will be your opponent.

RRobots, Inc. will run a championship competition on 12-20-2005 (wasting even
more hardware) matching each participant against all others, three times. (Your
bot must be posted to Ruby Talk on or before 6 PM (GMT) the 19th, to compete. A
resubmission of the same bot class replaces the original submission, but
contestants are allowed to submit multiple distinct bots.) The winner of the
competition will be the bot with the most overall wins. The result of these
battles will lead to a winner honored with having the next product-line named
after him. (James and Simon will provide the winner with a Desktop R/C
Mini-Rover from ThinkGeek.com, after the quiz summary is posted. Contestants
must provide a valid email address with their solutions to be eligible.)

If you are interested, here are the details:

You have to provide a class including the module 'Robot', defining a method
named 'tick' taking an array of events as input. By including the module
'Robot' you gain access to the robot hardware via methods like:

fire(power) # fires a bullet in the direction of your gun
turn(degrees) # turns the robot (and the gun and the radar)
energy # your remaining energy (if this drops below 0 you are dead)
# ...

You have to define the behavior of the robot for each tick (approximately 20ms).
This approach is kind of low level but you are allowed (if not encouraged) to
unleash the whole power of Ruby to create higher level functions and interfaces
(take a look at http://rrobots.rubyforge.org/OOSittingDuck.rb for an idea).

A word of warning: If your AI tries to cheat (using other ways than those
provided by the 'Robot' module to gain information about the battlefield or the
other bots) or throws any errors, your submission will be disqualified.

You can get information, sample bots and the arena program on
http://rrobots.rubyforge.org/.

Good luck and may the best bot win!

Disclaimer: Of course there is no 'RRobots, Inc.' (if there is, this is totally
unrelated to them) and you will not receive any hardware whatsoever via snail
mail. While it is very unlikely that you get hurt in a RRobots battle, I'm not
responsible for any harm done to you or your equipment during this quiz.


Peter Thoman

unread,
Dec 16, 2005, 10:30:02 AM12/16/05
to
Ruby Quiz wrote:

>[...]
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>by Simon Kroeger
>
>[...]
>
Is there a limit on the amount of time the tick() method may take? I can
think of lots of interesting stuff I may want to try that could be quite
expensive computationally.

Great quiz!

Paul Novak

unread,
Dec 16, 2005, 10:45:42 AM12/16/05
to
Are team entries permitted/forbidden?


Kroeger, Simon (ext)

unread,
Dec 16, 2005, 10:48:09 AM12/16/05
to

> From: Peter Thoman [mailto:peter....@chello.at]
>
> Ruby Quiz wrote:
>
> >[...]
> >-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


> =-=-=-=-=-=-=-=-=-=
> >
> >by Simon Kroeger
> >
> >[...]
> >
> Is there a limit on the amount of time the tick() method may
> take? I can
> think of lots of interesting stuff I may want to try that
> could be quite
> expensive computationally.
>
> Great quiz!

Basically no, I would like to see the 'interesting stuff' and
that's exactly the reason why there is not limit (yet).
But if it takes hours to match your bot against another I will
disqualify this bot from the tournament just because I would
have no chance to get the results on time. I hope this is an
acceptable approach.

I would also like to add that everyone should use the v0.4.0
release.

And here is a link to the mini-rover:

http://www.thinkgeek.com/geektoys/rc/5776/

cheers

Simon


James Edward Gray II

unread,
Dec 16, 2005, 10:49:51 AM12/16/05
to
On Dec 16, 2005, at 9:30 AM, Peter Thoman wrote:

> Ruby Quiz wrote:
>
>> [...]
>> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>> =-=-=-=-=-=-=
>>

>> by Simon Kroeger
>>
>> [...]
>>
> Is there a limit on the amount of time the tick() method may take?
> I can
> think of lots of interesting stuff I may want to try that could be
> quite
> expensive computationally.

We tried to talk these issues to death, and I knew we would still
miss the ones you guys would raise. ;)

Simon is running the final tournament, so his word is law, but I
would limit it, yes. 30 seconds to a minute seems plenty.

James Edward Gray II


Kroeger, Simon (ext)

unread,
Dec 16, 2005, 10:50:10 AM12/16/05
to

> From: Paul Novak [mailto:nov...@gmail.com]
>
> Are team entries permitted/forbidden?

The tournament will be 1on1 only. If your robot has
the ability to act well in a team that's fine, but will
not help you winning.

cheers

Simon


Brian Schröder

unread,
Dec 16, 2005, 11:37:41 AM12/16/05
to

I suspect he meant submitting a robot written by a team.

cheers,

Brian

--
http://ruby.brian-schroeder.de/

Stringed instrument chords: http://chordlist.brian-schroeder.de/


Adam Shelly

unread,
Dec 16, 2005, 2:23:46 PM12/16/05
to
Figures this one comes out the day before I leave on 2 week vacation.
I already started one, but it needs more work. Can I email what I
have directly to Simon or James since I'm leaving before the 48 hours?

Thanks,
-Adam

James Edward Gray II

unread,
Dec 16, 2005, 2:36:54 PM12/16/05
to
On Dec 16, 2005, at 1:23 PM, Adam Shelly wrote:

> Figures this one comes out the day before I leave on 2 week vacation.
> I already started one, but it needs more work. Can I email what I
> have directly to Simon or James since I'm leaving before the 48 hours?

Certainly: ja...@grayproductions.net

James Edward Gray II


Simon Kröger

unread,
Dec 16, 2005, 6:07:52 PM12/16/05
to

Ok, if you want to put some man weeks into a robot just go on!
(but don't blame me if your boss has a problem with that)

cheers

Simon

James Edward Gray II

unread,
Dec 19, 2005, 10:11:26 PM12/19/05
to
On Dec 16, 2005, at 7:29 AM, Ruby Quiz wrote:

> RRobots, Inc. will run a championship competition on 12-20-2005
> (wasting even
> more hardware) matching each participant against all others, three
> times. (Your
> bot must be posted to Ruby Talk on or before 6 PM (GMT) the 19th,
> to compete.

I'm extending this date/time to 6 PM (GMT) on the 20th, to give
people a little more time and hopefully snag another submission or two.

James Edward Gray II


Joe Van Dyk

unread,
Dec 19, 2005, 11:01:35 PM12/19/05
to

Gah, was out of town and just now saw this. I think you should extend
the deadline until the 31st or something. That way, those of us who
get a little holiday break from work can spend some time on this
project.

Joe


James Edward Gray II

unread,
Dec 19, 2005, 11:15:23 PM12/19/05
to

Simon can make the call on this.

I was not planning to release a quiz this week (due to the Holiday).
If people want, I could extend this one until the 27th (covering the
week off).

Simon has to run the tourney at the end though, so he gets to make
the call. Let me know Simon...

James Edward Gray II


David Balmain

unread,
Dec 19, 2005, 11:18:29 PM12/19/05
to
Sounds like someone needs to set up a league. I have no time for the
next month or so but I'd definitely like to build something someday.

Peña, Botp

unread,
Dec 20, 2005, 5:48:14 AM12/20/05
to
#From: Ilmari Heikkinen [mailto:ilmari.h...@gmail.com]

#Btw, should these be written from scratch for the quiz? This is more
#like a bot that i wrote some weeks ago that begat another bot that
#begat another bot that begat this.

it has good poise but fails miserably w multiple tanks. It gets killed easily w just 2 nervous ducks. Kite's biggest weakness is that it concentrates on firing one tank, till it kills that. Unfortunately, other tanks are also firing Kite, so...

kind regards -botp

#--
#Ilmari
#

James Edward Gray II

unread,
Dec 20, 2005, 9:21:00 AM12/20/05
to
On Dec 20, 2005, at 4:33 AM, Ilmari Heikkinen wrote:

> Btw, should these be written from scratch for the quiz? This is more

> like a bot that i wrote some weeks ago that begat another bot that

> begat another bot that begat this.

I think it's fine.

James Edward Gray II


James Edward Gray II

unread,
Dec 20, 2005, 9:39:43 AM12/20/05
to
On Dec 19, 2005, at 10:15 PM, James Edward Gray II wrote:

> On Dec 19, 2005, at 10:01 PM, Joe Van Dyk wrote:
>
>> On 12/19/05, James Edward Gray II <ja...@grayproductions.net> wrote:
>>> On Dec 16, 2005, at 7:29 AM, Ruby Quiz wrote:
>>>
>>>> RRobots, Inc. will run a championship competition on 12-20-2005
>>>> (wasting even
>>>> more hardware) matching each participant against all others, three
>>>> times. (Your
>>>> bot must be posted to Ruby Talk on or before 6 PM (GMT) the 19th,
>>>> to compete.
>>>
>>> I'm extending this date/time to 6 PM (GMT) on the 20th, to give
>>> people a little more time and hopefully snag another submission
>>> or two.
>>
>> Gah, was out of town and just now saw this. I think you should
>> extend
>> the deadline until the 31st or something. That way, those of us who
>> get a little holiday break from work can spend some time on this
>> project.
>
> Simon can make the call on this.

Simon gave us the green-light. This quiz will be our first two-week
Ruby Quiz. The new deadline for submissions is 6 PM (GMT), December
27th. No more extensions after that though.

Now show us some bots! ;)

James Edward Gray II

Bryan Kennedy

unread,
Dec 21, 2005, 9:54:18 AM12/21/05
to

Oh, that's cool.
Myself I'm a complete Nuby, however if I manage to figure stuff out even
I might do something here.
Now I actually might have the time to do it. :)


--
Posted via http://www.ruby-forum.com/.


0 new messages