Need help with TurtlePlayground?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

dimsumthinking
125 Stars 12 Forks 67 Commits 1 Opened issues

Description

Swift playground using Logo-like commands

Services available

!
?

Need anything else?

Contributors list

# 472,784
Swift
56 commits
# 336,601
Swift
rspec
test-ru...
C
2 commits
# 3,157
Svelte
bitbuck...
graphql...
Express
1 commit
# 240,287
Swift
graphql...
Shell
apollog...
1 commit
# 604,747
Swift
Shell
C
1 commit

TurtlePlayground

Swift playground using Logo-like commands

A few preliminary notes:

The playground doesn't seem to be respecting page order. Click on TOC to go to the table of contents and the navigation will work from there.

  • This playground requires the new playground format and features released in Xcode 7 and Swift 2. This version requires Yosemite.
  • From time to time playgrounds can crash or seem to disappear from time to time. The current fix suggested by Apple is to show the package contents of the playground and delete the workspace.
  • Type "turtle" in the Linear Turtle playground page. You should see "LinearTurtlewithTargetPageSources.Turtle" on the right. Mouse over it and you will see the quick look icon and the show value icon. Click on the show value icon. You should see a rectangle with a turtle in the middle. Enlarge the box if you like.
  • Make the turtle move by typing in "forward() or back()". Stop when you've hit your target'.
  • In the next page add the functions right() and left().
  • In the next page the four functions can take arguments specifying how much to move forward() or back() and how much to turn right() or left().
  • In the next page you can change colors using penColor() or nextColor().
  • In the final page you can show() and hide() the icon or control the pen using penUp() or penDown().
  • Create routines and your own functions.

I am working on a book that will serve as a tutorial using this playground. It will be available soon.

This project is presented without any sort of warranty - use at your own risk.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.