[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/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 - Interactive Tron

It is currently Sun Sep 23, 2018 1:06 pm Advanced search

Interactive Tron

Random stuff about the contest, posts that don't fit in the other forums.

Interactive Tron

Postby jbroman » Tue Feb 02, 2010 5:15 am

I've written a simple little Python script which allows you to play interactively against your bot. It's not terribly sophisticated, but I thought some people might be interested. See for details. I have no idea how well this runs on Windows, but it works fine on Mac OS X and Linux. The usage page you get when you run it is fairly self explanatory, though I thought I'd make a few additional comments:

Firstly, dimensions and coordinates should each be given as a pair of comma-separated values with no spaces. Secondly, the "executable" parameter is actually a shell command used to execute your bot; if you need to call Perl or some such explicitly, put the command "perl MyTronBot.pl" or whatever in quotation marks.

This script currently only allows generation of empty maps; I may add code to allow non-empty maps soon.

This is unofficial and I make no guarantee that it is 100% compliant with the official Tron engine, but it's a nice tool to allow you to test your bot interactively.

You should also note that Robert Xiao (nneonneo) is working on a similar tool as part of his alternate contest engine package; this may be more feature-complete when it comes out (I don't know much about it).

Cheers,

--
Jeremy Roman
Student, Computational Science
University of Waterloo
jbroman
Cadet
 
Posts: 8
Joined: Mon Feb 01, 2010 5:39 pm

Re: Interactive Tron

Postby amstan » Tue Feb 02, 2010 7:35 am

nneonneo is actually finishing his tool, it's pretty much a full replacement for yours plus tournament manager(with borrowed code from last term).
He'll be posting when it's bug free(read: in a few days), and it will become the official local contest engine for ppl to test their submissions.
Alexandru M. Stan
Contest Organizer
User avatar
amstan
Contest Organizer
 
Posts: 691
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario

Re: Interactive Tron

Postby listic » Thu Feb 04, 2010 7:45 pm

How do I use Interactive Tron, with Python bot?

I run my bot againist example bot as follows:
java -jar engine/Tron.jar maps/empty-room.txt "python MyTronBot.py" "java -jar example_bots/RandomBot.jar"
listic
Cadet
 
Posts: 2
Joined: Thu Feb 04, 2010 7:22 pm

Re: Interactive Tron

Postby amstan » Thu Feb 04, 2010 8:11 pm

Alexandru M. Stan
Contest Organizer
User avatar
amstan
Contest Organizer
 
Posts: 691
Joined: Sun Jan 31, 2010 4:02 am
Location: Stoney Creek, Ontario

Re: Interactive Tron

Postby listic » Fri Feb 05, 2010 1:20 am

listic
Cadet
 
Posts: 2
Joined: Thu Feb 04, 2010 7:22 pm

Re: Interactive Tron

Postby nneonneo » Fri Feb 05, 2010 1:23 am

Interactive Tron doesn't work on Windows. Try my Python Tournament Engine instead.
nneonneo
Captain
 
Posts: 26
Joined: Sun Jan 31, 2010 5:39 am


Return to Misc

Who is online

Users browsing this forum: No registered users and 1 guest

cron