Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Stair Builder program
- -- By Al Sweigart
- -- al@inventwithpython.com
- -- Builds stairs. Use with stair miner.
- os.loadAPI('hare')
- while turtle.detect() do
- turtle.up()
- if not hare.selectItem('stairs') then
- print('Need more stairs. Stopping.')
- return
- end
- turtle.placeDown()
- if not turtle.forward() then
- print('Hit wall. Stopping.')
- return
- end
- end
- print('Reached end of incline. Stopping.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement