Table of contents Index

Module pyrtb

class RTBRobotSkel # RTBRobotSkel
int COOKIE = 3
list GameOptions = ['robot_max_rotate', 'robot_cannon_max_rotate', 'robot_radar_max_rotate', 'robot_max_acceleration', 'robot_min_acceleration', 'robot_start_energy', ...]
int LAST_OBJECT_TYPE = 5
int MINE = 4
int NO_OBJECT = -1
int ROBOT = 0
int ROTATE_CANNON = 2
int ROTATE_RADAR = 4
int ROTATE_ROBOT = 1
list RobotOptions = ['send_signal', 'send_rotation_reached', 'signal', 'use_non_blocking']
int SHOT = 1
int WALL = 2
string __file__ = './pyrtb.pyc'
string __version__ = '0.1.2'

Description

Propaganda

This module provides the RTBRobotSkel class, which implements basic behavior for Real Time Battle robots development in Python. It allows you easily and quickly design robots, by focusing your efforts in the seek-and-destroy algorithms you want to implement. You only need to adapt a few functions to your needs, but still remain the master of the Thing; Python is here for that ;-)

Constants

The module implements integer constants used when calling some methods of the class. These concern rotate*() methods and methods which make use of object types.

Rotations

There are three constants used when using rotate*() which are: These can be OR'ed if parts have to be moved simultaneously.

Object Types

Objects types are defined through the following integer constants:

Lists

The following lists are used when communicating with the server:
Valid HTML 4.0! Made with CSS