Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 1 - black
- -- 2 - red
- -- 3 - glass
- -- Данные
- art1 = {3, 3, 3, 3, 3, 3, 3}
- art2 = {3, 3, 3, 1, 1, 3, 3}
- art3 = {3, 3, 1, 2, 2, 1, 3}
- art4 = {3, 1, 2, 2, 1, 3, 3}
- art5 = {3, 3, 1, 2, 2, 1, 3}
- art6 = {3, 3, 3, 1, 1, 3, 3}
- art7 = {3, 3, 3, 3, 3, 3, 3}
- -- Функции
- function buildLine(line)
- for i = 1, #line do
- x = line[i]
- turtle.select(x)
- turtle.placeDown()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- end
- -- Программа
- buildLine(art1)
- buildLine(art2)
- buildLine(art3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement