[Pogamut-list] Setting up team game in Netbeans GUI

jakub.gemrot pogamut-forum at diana.ms.mff.cuni.cz
Mon May 24 08:42:21 CEST 2010


Re: Setting up team game in Netbeans GUI

Author: jakub.gemrot

Hi, currently this feature (running team of bots) is unsupported. We have it on our schedule.
Anyway, you may achieve that on your own. Difficulty of this task is dependent on the thing you need to do.

I will describe a scenario where you have 1 bot project and you want to play 3 vs 3 bots (same bot code run 6x):

1) you have to change main() method
2) alter "SingleBotRunner" for a "MultipleBotRunner" like this:

  public static void main(String args[]) throws PogamutException {
        new MultipleUT2004BotRunner(6, YourBotClassName.class, "YourBotName").startAgent();
  }

This will start 6 bots for you. Note that GB2004 has team-balancing switched off. For team balancing you may use 'players' module that tells you which bots are already connected and alter getInitializeCommand where you setTeam() to tell GB2004 which team the bot wants to enter.

Best,
Jimmy

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=2&comments_reply_threadId=2&comments_parentId=54&post_reply=1#form>





More information about the Pogamut-list mailing list