Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jochen Bauer
spn-website
Commits
a1e00738
Commit
a1e00738
authored
May 10, 2018
by
Daniel Albert
Browse files
Fix typos in default bot code
parent
4ddc171c
Changes
1
Show whitespace changes
Inline
Side-by-side
ide/templates/ide/initial-bot.lua
View file @
a1e00738
...
@@ -32,7 +32,7 @@ function step()
...
@@ -32,7 +32,7 @@ function step()
-- distance of the food item, relative to the center of your head
-- distance of the food item, relative to the center of your head
local
distance
=
item
.
dist
local
distance
=
item
.
dist
-- direction to the food item, in radi
e
ns (0..2*math.pi)
-- direction to the food item, in radi
a
ns (0..2*math.pi)
-- 0 means "straight ahead", math.pi means "right behind you"
-- 0 means "straight ahead", math.pi means "right behind you"
local
direction
=
item
.
d
local
direction
=
item
.
d
...
@@ -58,7 +58,7 @@ function step()
...
@@ -58,7 +58,7 @@ function step()
-- distance to the center of the segment
-- distance to the center of the segment
local
distance
=
item
.
dist
local
distance
=
item
.
dist
-- direction to the segment, in radi
e
ns (0..2*math.pi)
-- direction to the segment, in radi
a
ns (0..2*math.pi)
local
direction
=
item
.
d
local
direction
=
item
.
d
-- radius of the segment
-- radius of the segment
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment