It is currently Wed Jun 19, 2013 2:06 am Advanced search

Random tron server

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

Random tron server

Postby dhartmei » Wed Feb 24, 2010 9:25 pm

If you, like me, would like to get more games for your bot, and are willing to use your own CPU time instead of uwaterloo's,
take a look at http://www.benzedrine.cx/tcptron.c, which runs your bot locally and communicates with a remote
map server for map and moves. You get a random opponent on a random map.

The server code is http://www.benzedrine.cx/tronserver.tar.gz, which might even be useful if you run it only locally
for yourself. Both are BSD licensed.

Have fun, and join us for random games on the server mentioned in the source. :)
User avatar
dhartmei
Colonel
 
Posts: 65
Joined: Sun Feb 07, 2010 3:58 pm
Location: Basel, Switzerland

Re: Random tron server

Postby dhartmei » Thu Feb 25, 2010 7:58 am

The client-server protocol has been slightly expanded, please update your client: http://www.benzedrine.cx/tcptron.c

The client can now supply a user name, and you see who you're playing against.
User avatar
dhartmei
Colonel
 
Posts: 65
Joined: Sun Feb 07, 2010 3:58 pm
Location: Basel, Switzerland

Re: Random tron server

Postby dhartmei » Thu Feb 25, 2010 9:30 am

And now there are proper ELO ratings, too: http://www.benzedrine.cx/tron.html.
User avatar
dhartmei
Colonel
 
Posts: 65
Joined: Sun Feb 07, 2010 3:58 pm
Location: Basel, Switzerland

Re: Random tron server

Postby pierrejoel » Thu Feb 25, 2010 10:06 am

Very cool! I'll put my bot when I get a moment.
pierrejoel
Captain
 
Posts: 23
Joined: Sat Feb 13, 2010 12:04 pm

Re: Random tron server

Postby pierrejoel » Thu Feb 25, 2010 10:44 am

I've started testing it, and I must say, I'm impressed! Very easy to set up, very simple yet efficient.

Highly recommended to anyone who's sick of the "internal server errors" of the official challenge :)
pierrejoel
Captain
 
Posts: 23
Joined: Sat Feb 13, 2010 12:04 pm

Re: Random tron server

Postby drewrobb » Thu Feb 25, 2010 1:25 pm

Very nice, just started running my bot on this. Thanks for setting it up.
drewrobb
Cadet
 
Posts: 6
Joined: Tue Feb 09, 2010 11:01 am

Re: Random tron server

Postby jmcarthur » Thu Feb 25, 2010 5:12 pm

This is excellent. Thanks for making and hosting it!
jmcarthur
Colonel
 
Posts: 80
Joined: Fri Feb 05, 2010 3:41 pm

Re: Random tron server

Postby DjinnKahn » Thu Feb 25, 2010 5:30 pm

It doesn't work on Windows : ( Am I the only one using Windows? : )
DjinnKahn
Lieutenant
 
Posts: 18
Joined: Wed Feb 17, 2010 11:32 pm

Re: Random tron server

Postby dhartmei » Thu Feb 25, 2010 6:31 pm

DjinnKahn wrote:It doesn't work on Windows : ( Am I the only one using Windows? : )


My Windows skills are lacking, but maybe you can modify a Windows version of http://en.wikipedia.org/wiki/Netcat to do what is needed:
connect to the IP and TCP port, start the specified program (MyTronBot), and connect its STDIN/STDOUT to the TCP socket (i.e. what the bot writes
to STDOUT is sent to the socket, what is read from the socket is sent to the bot's STDIN), with only one exception: lines that start with "INFO " should
be printed to the screen, instead of being forwarded. nc.exe -e MyTronBot does all of that, except the last part...

And then there's http://en.wikipedia.org/wiki/Cygwin, which provides the headers and libraries for all the Unix/Posix functions (pipe(), fork(), exec())
used by tcptron.c.
User avatar
dhartmei
Colonel
 
Posts: 65
Joined: Sun Feb 07, 2010 3:58 pm
Location: Basel, Switzerland

Re: Random tron server

Postby aramadia » Thu Feb 25, 2010 6:34 pm

How exactly do you run it? Which port do you connect to on your server?
aramadia
Lieutenant
 
Posts: 14
Joined: Fri Feb 12, 2010 1:25 pm

Next

Return to Misc

Who is online

Users browsing this forum: No registered users and 0 guests

cron