Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 逆ピラミッド
- local num = 10
- for j=1,num do
- for i = 1,num do
- turtle.up()
- if (num - i)^2 + i^2 - num ^ 2 < 1 then
- turtle.placeDown()
- end
- end
- turtle.forward()
- for i = 1,num do
- turtle.down()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment