hquxmu / ai-contest

Automatically exported from code.google.com/p/ai-contest
0 stars 0 forks source link

Support the Groovy language #167

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Groovy, a JVM language, is available for Ubuntu 8.04 Server. 

It would be groovy!

I am currently doing a simple translation of the Java starter package. I expect 
to be finished by 28 Sept. It is not hard but I have other commitments.

I would like to know how to complete the process without breaking the rules. Is 
there a test server? Do you also require the example bots groovified?

Latest Groovy available here: 
http://dist.groovy.codehaus.org/distributions/groovy-binary-1.7.5.zip

It is also available via apt but it is a backlevel version.

Original issue reported on code.google.com by aro...@gmail.com on 19 Sep 2010 at 3:19

GoogleCodeExporter commented 8 years ago
OK. I "finished" the classes in Groovy. However, I am having problems with 
timeouts and with stdin/stdout. I do not understand it since I made few changes 
from the shipping java starter package.

Original comment by aro...@gmail.com on 22 Sep 2010 at 5:44

GoogleCodeExporter commented 8 years ago
I have uploaded the Groovy starter package to the forum: 
http://ai-contest.com/forum/viewtopic.php?f=18&t=767

It contains instructions on installing, compiling, and executing Groovy code.

Should I also upload the package here?

Original comment by aro...@gmail.com on 23 Sep 2010 at 12:45

GoogleCodeExporter commented 8 years ago
From http://ai-contest.com/forum/viewtopic.php?f=18&t=767#p4862

I have uploaded a new and complete Groovy starter package. It includes the 
directories maps, tools, and example_bots. 

I have made a change in the way stdin is read which required a change in the 
signature of PlanetWars' constructor and in the method ParseGameState. 
Otherwise, it is identical to the Java starter package. 

----Obtaining and Installing Groovy on the Server

There is a deb package which can be obtained from Groovy's home at 
http://dist.groovy.codehaus.org/distrib ... -1_all.deb

If this fails then use the default groovy package that is already available in 
the Ubuntu repositories. Just "apt-get install groovy".

Groovy is a JVM language and therefore it requires that Java be installed. 

---Compiling and Executing Groovy

There is no need to compile Groovy. Simply run "groovy MyBot.groovy" in the 
directory where the other files of the submmision are located. 

Original comment by aro...@gmail.com on 26 Sep 2010 at 2:45

GoogleCodeExporter commented 8 years ago
In case anyone watching this hasn't noticed on the forums, Groovy support has 
been enabled for a few days on the servers. I'm just waiting for a couple bots 
to get uploaded before closing this.

Original comment by janzert on 5 Nov 2010 at 6:45