class CrystalRobots::Robot

Defined in:

crystal-robots.cr

Constant Summary

ACCEL = 10
MAX_CALLS = 100
MAXROBOTS = 4
MOTION_CYCLES = 15
ROBOT_SPEED = 7
TURN_SPEED = 50

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name : String) #

Class Method Detail

def self.active_robot #

def self.num_robots #

def self.robots #

Instance Method Detail

def activate #

def cannon(degree, range) #

def damage #

def debug(s) #

def drive(degree, speed) #

def loc_x #

def loc_y #

def main(&program : Robot -> Nil) #

def name : String #

def run #

def scan(degree, resolution) #

def sleep #

def speed #