It is currently Wed Apr 25, 2018 6:05 pm Advanced search

Scala - alternative starter pack.

Code won't compile? Found a bug? Post here!

Scala - alternative starter pack.

Postby synesso » Thu Nov 11, 2010 11:49 am

Hi. I created an alternative starter pack for Scala. This uses more idiomatic Scala than the existing one.

https://github.com/Synesso/ai-contest-scala-starter

It handles the I/O and parsing. You need only provide an implementation to the Bot trait's only function:

def respondTo(turnState: Seq[Planet]): Set[Order]

Because this interface is a trait and not System.in/out you can test your bot with greater ease.

It also comes with SBT project config and handy shell scripts for stripping out the packages, creating the zip and running PlayGame.jar on a random map.

Please let me know of any issues.
synesso
Cadet
 
Posts: 7
Joined: Sat Sep 25, 2010 10:52 pm

Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron