Commit d13f06cb authored by Hubert Denkmair's avatar Hubert Denkmair
Browse files

document init() function

parent 0636b781
......@@ -6,10 +6,17 @@
-- means turn right. With 0, the snake keeps its direction.
-- @return new angle relative to the head direction
-- @usage function step()
-- return 45
-- return 0.005
-- end
function step()
return 45
return 0.005
--- This method is called upon creation of a bot
-- Initialialize your environment here.
-- you can also access the "self" object here and, e.g. set your snake's colors
function init()
self.colors = { 0xFF0000, 0xFFBF00, 0x80FF00, 0x00FF40, 0x00FFFF, 0x0015FF, 0x8000FF }
--- That method returns all food as list.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment