[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/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 - TCP Server

It is currently Mon Jul 23, 2018 7:50 am Advanced search

TCP Server

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

Re: TCP Server

Postby xyz » Mon Sep 13, 2010 1:58 pm

hi. my bot is in the top 100!

however, im new to programming and these technical details so how do i connect to the TCP server? please understand that it took my over half an hour to figure out how to work that java visual display thing.

steps on how to proceed would be great

thanks!
xyz
Cadet
 
Posts: 5
Joined: Mon Sep 13, 2010 1:53 pm

Re: TCP Server

Postby Tracer » Mon Sep 13, 2010 2:18 pm

Is there a way to visualize results of games played on TCP server? Seems like the best option for now is to add some additional logging and build file compatible for ShowGame.jar. However I'm not sure that there is enough data on side of a player.
Tracer
Captain
 
Posts: 29
Joined: Sat Sep 11, 2010 7:32 pm

Re: TCP Server

Postby dhartmei » Mon Sep 13, 2010 4:30 pm

You mean other than through clicking on your user name and then "View Game" on ?

If you log all input your bot gets into a file, that is enough to build the game state data that the Canvas and Java visualizers read.

Or you can fetch the Canvas page through the URL above, extract the game state data (the 'var = ' part in the JavaScript in there), and
feed that to a visualizer.
User avatar
dhartmei
Colonel
 
Posts: 65
Joined: Sun Feb 07, 2010 3:58 pm
Location: Basel, Switzerland

Re: TCP Server

Postby Tracer » Mon Sep 13, 2010 11:39 pm

Tracer
Captain
 
Posts: 29
Joined: Sat Sep 11, 2010 7:32 pm

Re: TCP Server

Postby Tracer » Tue Sep 14, 2010 12:47 am

Tracer
Captain
 
Posts: 29
Joined: Sat Sep 11, 2010 7:32 pm

Re: TCP Server

Postby Queue29 » Tue Sep 14, 2010 1:04 am

I'm sure others already have their own solutions, but I just made a quick and dirty python3 wrapper for the tcp client to keep a bot in continuous play. It sleeps for a bit in between each round to avoid pairing up with the same opponent over and over.

All you need to do is edit the cmd = "./tcp 213.3.30.106 9999 supaman314 ./MyBot" line so that you execute tcp and MyBot correctly.

http://gist.github.com/578352
Queue29
Lieutenant-Colonel
 
Posts: 41
Joined: Sat Feb 06, 2010 5:43 am

Re: TCP Server

Postby xyz » Tue Sep 14, 2010 7:39 am

how do i use that java code to connect to the tcp server??? (im on a windows machine)
xyz
Cadet
 
Posts: 5
Joined: Mon Sep 13, 2010 1:53 pm

Re: TCP Server

Postby Tracer » Tue Sep 14, 2010 11:55 am

Tracer
Captain
 
Posts: 29
Joined: Sat Sep 11, 2010 7:32 pm

Re: TCP Server

Postby eburnette » Tue Sep 14, 2010 1:17 pm

eburnette
Captain
 
Posts: 22
Joined: Tue Sep 14, 2010 12:57 pm

Re: TCP Server

Postby xyz » Tue Sep 14, 2010 3:49 pm

thanks tracer it worked! although it still took me a while to figure out i needed a java compiler...

another question: how do i leave it running so that it plays automatically?
xyz
Cadet
 
Posts: 5
Joined: Mon Sep 13, 2010 1:53 pm

PreviousNext

Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 2 guests

cron