This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "BZRobots"

From BZFlagWiki
Jump to: navigation, search
(See Also)
Line 4: Line 4:
 
'''(Note that the following applies to the BZRobots in the upcoming BZFlag 3.0 release)'''
 
'''(Note that the following applies to the BZRobots in the upcoming BZFlag 3.0 release)'''
  
=How to build=
+
=Getting Started: Building=
 
===Linux/OS X===
 
===Linux/OS X===
The BZRobots client will by default as a standard part of the bzflag trunk build. You will need to add an extra option to the ./configure in order to use Python
+
The BZRobots client (and support for C++ bots) will by default as a standard part of the bzflag trunk build. However, if you want to build Pythong bots, you will need to run ./configure with the option --enable-bzrobots-python (and of course have the necessary dependencies)
  
 
===Windows===
 
===Windows===
 
Open the bzrobots solution, then build the bzrobots and testbot projects.  
 
Open the bzrobots solution, then build the bzrobots and testbot projects.  
  
=Example of use=
+
=Getting Started: Running=
 
===Linux/OS X: Shared Library [.so]===
 
===Linux/OS X: Shared Library [.so]===
 
(Note: Due to the use of libtool, the TestRobot.so is in the .libs directory)
 
(Note: Due to the use of libtool, the TestRobot.so is in the .libs directory)

Revision as of 06:22, 4 August 2009

About BZRobots

BZRobots is a programmable computer player client that is compatible with the bzfs servers. It is designed to be an artificial intelligence training and development tool that operates under the BZFlag platform.

(Note that the following applies to the BZRobots in the upcoming BZFlag 3.0 release)

Getting Started: Building

Linux/OS X

The BZRobots client (and support for C++ bots) will by default as a standard part of the bzflag trunk build. However, if you want to build Pythong bots, you will need to run ./configure with the option --enable-bzrobots-python (and of course have the necessary dependencies)

Windows

Open the bzrobots solution, then build the bzrobots and testbot projects.

Getting Started: Running

Linux/OS X: Shared Library [.so]

(Note: Due to the use of libtool, the TestRobot.so is in the .libs directory)

# cd bzflag/src/bzrobots
# ./bzrobots -team red robot@localhost .libs/TestRobot.so

Linux/OS X: Python [.py]

# cd bzflag/src/bzrobots
# ./bzrobots -team red robot@localhost ../../bots/python/StalkBot.py

Windows: Shared Library [.dll]

# cd bzflag
# ./bzrobots -team red robot@localhost testbot.dll

See Also

BZRobots/API - A list of the methods in the BZRobots API

BZRobots/Ideas - Community suggestions for and enhancements changes for BZRobots

BZRobots/RoboCode_Changes - For those coming from RoboCode, a list of differences between the RoboCode and BZRobots API

BZRobots/History - The old "About" page for BZRobots

BZRobots/Protocol - Description of the internal protocol used in BZRobots