For Windows, the most important download is PuTTY. Xming and Python 3.x are also desirable.
c:\cs8, and then put cTurtle.py into that directory.If you have a Mac, the only thing you might want to install is Python 3.x—you don't need XMing or Putty.
Steps:
/Users/Shared/cs8, and then put cTurtle.py into that directory.If you want to access CSIL instead of running locally, follow the instructions here:
http://www.cs.ucsb.edu/~pconrad/topics/CSILFromMacOrLinux/
If you have a Linux, you only need to install Python 3.x—you don't need XMing or Putty. Visit www.python.org to find the necessary download, or try the package manager for your version of Linux (apt, yum, rpm, whatever.)
If you have Linux, you can probably figure out how to do that on your own—and how to adapt the instructions for Mac to your Linux box. You just need to pick someplace to store the cTurtle.py module, and use that path inside the sys.path.append() function call instead of /Users/Shared/cs8. The directory doesn't matter—it just has to be some directory that you have access to.
If you want to access CSIL instead of running locally, follow the instructions here:
http://www.cs.ucsb.edu/~pconrad/topics/CSILFromMacOrLinux/
Here is some code to test whether cTurtle is working.
# test whether cTurtle works---for CS8, Fall 2010
#
# This next part is ONLY needed if you are on your personal Windows machine:
import sys
sys.path.append("C:\cs8")
# This next part is ONLY needed if you are on your personal Mac OS machine:
import sys
sys.path.append("/Users/Shared/cs8")
# This part is always needed---it says: we are going to use cTurtle functions
import cTurtle
# This sets up a turtle named "fred"
# It is an example of an assignment statement
fred = cTurtle.Turtle("turtle")
# move fred forward 100 pixels, then turn right.
fred.forward(100)
fred.right(90)