[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4586: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4588: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4589: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4590: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
AI Challenge Forums • View topic - [New Language] Scala

It is currently Mon Apr 23, 2018 9:32 am Advanced search

[New Language] Scala

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

[New Language] Scala

Postby tulsidas » Fri Sep 10, 2010 3:48 pm

Hi, just to let everyone know I'm working on a starter package for Scala, I'll probably have it by today, if anyone is already working on one let me know!
tulsidas
Cadet
 
Posts: 7
Joined: Fri Sep 10, 2010 2:14 pm

Re: [New Language] Scala

Postby tulsidas » Fri Sep 10, 2010 6:13 pm

I just posted the initial commit in http://github.com/tulsidas/ai-planetwars-scala

I haven't tested anything yet, just ported the Java code
tulsidas
Cadet
 
Posts: 7
Joined: Fri Sep 10, 2010 2:14 pm

Re: [New Language] Scala

Postby tulsidas » Sat Sep 11, 2010 11:30 pm

Fixed bugs in main method, it works fine now, thou the first turn need more than 1 second (same problem as Clojure)
tulsidas
Cadet
 
Posts: 7
Joined: Fri Sep 10, 2010 2:14 pm

Re: [New Language] Scala

Postby MrTopka » Sun Sep 12, 2010 9:24 am

If make jar and run it with 'java -jar' insted running it with 'scala' command - 3 sec for first turn is enough.
MrTopka
Cadet
 
Posts: 4
Joined: Sat Sep 11, 2010 11:53 am

Re: [New Language] Scala

Postby nuriaion » Mon Sep 13, 2010 9:19 am

I use sbt to build my bot and also run it against other bots. If somebody is interested i can upload the configuration.
nuriaion
Cadet
 
Posts: 6
Joined: Fri Sep 10, 2010 11:31 am

Re: [New Language] Scala

Postby krzyk111 » Mon Sep 13, 2010 10:00 am

Whenever I try to run scala bots with:
java -jar tools/PlayGame.jar maps/map7.txt 1000 1000 log.txt "scala RandomBot" "scala MyBot"

I get:
ERROR: failed to start client: scala RandomBot



When I change e.g. RandomBot to java it wokrs fine, but scala MyBot fails it seams that scala isn't recognized, but I can run the bots from command line using scala MyBot and pass info to them.


Also, I tried incresing 1000 times (I assume that is the time for turn, and for the first turn) but it didn't change a thing.
krzyk111
Cadet
 
Posts: 6
Joined: Mon Sep 13, 2010 9:56 am

Re: [New Language] Scala

Postby tulsidas » Mon Sep 13, 2010 11:10 am

tulsidas
Cadet
 
Posts: 7
Joined: Fri Sep 10, 2010 2:14 pm

Re: [New Language] Scala

Postby tulsidas » Mon Sep 13, 2010 11:11 am

tulsidas
Cadet
 
Posts: 7
Joined: Fri Sep 10, 2010 2:14 pm

Re: [New Language] Scala

Postby krzyk111 » Mon Sep 13, 2010 11:37 am

Yes I compiled every *.scala file.

I tried also with my own implementation of PlanetWars.scala but with same error.

It seams that my scala installation is wrong or something, although I think I have everything right (scala's bin directory in PATH) and my scala programs run just fine if not run using PlayGame.jar
krzyk111
Cadet
 
Posts: 6
Joined: Mon Sep 13, 2010 9:56 am

Re: [New Language] Scala

Postby krzyk111 » Mon Sep 13, 2010 11:47 am

I have to remember not to run anything in Windows. Here you have to use "scala.bat" in the commandline of exec() even if windows cmd accepts "scala" without the extension.

Everything runs fine now :)
krzyk111
Cadet
 
Posts: 6
Joined: Mon Sep 13, 2010 9:56 am

Next

Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron