FloatingDuck

From BerryBots Wiki
Jump to: navigation, search

A sample ship packaged with BerryBots as sample/floatingduck.lua. It doesn't do anything, which sometimes makes for a useful test bot.

The name is an homage to Robocode's SittingDuck.

Source code

-- A ship that does nothing at all.
 
function init(ship, world)
  ship:setName("FloatingDuck")
end
 
function run(enemyShips, sensors)
 
end
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox