It is currently Wed Jan 17, 2018 12:54 pm Advanced search

Playing over netcat

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

Playing over netcat

Postby HamstahGuru » Wed Sep 22, 2010 12:35 am

Hey guys,
I made two scripts to allow playing over netcat that you can find here: http://github.com/hamstah/ai-contest-2010-tools

basically, you want to play against a friend, but of course you don't want to give away your code.
What you do is use my script run_bot_nc.sh to make your friend's bot listen for game message on a specific port (eg 3333, make sure the port is accessible from your machine) then you use run_nc.sh to run a game by giving your friend ip:port as player1 (or 2) and the command for your bot as the other.

ex:
Player 1 (host=blah.com)
./run_bot_nc.sh 3333 "./MyBot"

Player 2
./run_nc.sh map1 blah.com:3333 "./MyBetterBot" 200 10000

(I don't show all the Turn... stuff, wait for the output to show the results on the server side)
See the files for more details.

TODO
add a script to push the result to each remote bot automatically
HamstahGuru
Cadet
 
Posts: 1
Joined: Tue Sep 21, 2010 11:58 pm

Return to Misc

Who is online

Users browsing this forum: No registered users and 1 guest

cron