[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/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 - Haskell entries not working

It is currently Tue Jan 23, 2018 12:30 am Advanced search

Haskell entries not working

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

Haskell entries not working

Postby A1kmmm » Fri Feb 05, 2010 8:46 am

I made an entry in Haskell - I didn't use the starter package because there isn't one yet, but I made the program parse the map, and output the correct sequence of actions. My bot works fine when played using the Tron engine...

andrew@mutate:~/Documents/google_ai$ ghc --make MyTronBot.hs
[1 of 1] Compiling Main ( MyTronBot.hs, MyTronBot.o )
Linking MyTronBot ...
andrew@mutate:~/Documents/google_ai$ java -jar /tmp/ruby/engine/Tron.jar /tmp/ruby/maps/empty-room.txt "./MyTronBot" "java -jar /tmp/ruby/example_bots/Chaser.jar" 0 1
15 15
###############
#1 #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# 2#
###############
15 15
###############
##1 #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# 2#
# ##
###############
15 15
###############
###1 #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# 2#
# ##
# ##
###############
15 15
###############
####1 #
# #
# #
# #
# #
# #
# #
# #
# #
# 2#
# ##
# ##
# ##
###############
and so on. My bot wins against all the sample bots, but unfortunately, when I zip it up and submit it, I get an error saying "Submission failure":

"
The auto-compile environment could not locate your main code file. This is probably because you accidentally changed the name of your main code file. You must include
exactly one file with one of the following names:
* MyTronBot.java (Java)
* MyTronBot.cc (C++)
* MyTronBot.c (C)
* MyTronBot.py (Python)
* MyTronBot.rb (Ruby)
* MyTronBot.pl (Perl)
This is to help the auto-compile environment figure out which programming language you are using.
"

I'm happy without a starter package, but it would be good if .hs entries could be compiled. My entry is targeted at the Haskell Platform (http://hackage.haskell.org/platform/200 ... form.cabal), and requires Parsec 2.1.x to parse the input from the server, as well as other packages that come with ghc (like containers-0.2.x).
A1kmmm
Cadet
 
Posts: 2
Joined: Fri Feb 05, 2010 8:22 am

Re: Haskell entries not working

Postby A1kmmm » Fri Feb 05, 2010 9:04 am

I would suggest compiling with:
ghc -O2 -fvia-c -optc-O3 --make MyTronBot.hs
A1kmmm
Cadet
 
Posts: 2
Joined: Fri Feb 05, 2010 8:22 am

Re: Haskell entries not working

Postby jmcarthur » Fri Feb 05, 2010 4:05 pm

Yeah, this is the reason I'm just waiting until there is some official announcement of Haskell support in the contest. I don't want to waste my time on an entry that I can't even evaluate against the other entries yet.
jmcarthur
Colonel
 
Posts: 80
Joined: Fri Feb 05, 2010 3:41 pm

Re: Haskell entries not working

Postby jmcarthur » Fri Feb 05, 2010 4:06 pm

jmcarthur
Colonel
 
Posts: 80
Joined: Fri Feb 05, 2010 3:41 pm

Re: Haskell entries not working

Postby toza » Fri Feb 05, 2010 7:06 pm

Haskell isnt supported yet for a reason, we need to add it in to the main auto compile. Glad to see you have got it working but it is not currently supported on server side. We will try to get it up and running ASAP.
Tapan Oza
Forum Mod
CSC member
toza
Lieutenant
 
Posts: 13
Joined: Fri Feb 05, 2010 4:25 am

Re: Haskell entries not working

Postby ozataman » Fri Feb 05, 2010 7:35 pm

I have also made a starter kit with some basic functionality, but did not succeed in my submission. I guess this is why. Really looking forward to server-side support being added!! Also, I would be happy to share the starter kit if that would speed things up.

Edit: Also, my version works without parsec and can be reached at:

http://github.com/ozataman/tronhs

Best,
Ozgun
ozataman
Cadet
 
Posts: 7
Joined: Fri Feb 05, 2010 7:32 pm


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron