Jan-25-2021, 03:42 PM
(Jan-25-2021, 03:39 PM)deanhystad Wrote: What do you mean by "normal turtle code" and "not allowed to do"? How are you expected to do drawing? Will this program be using turtle graphics or something else to do the drawing. If something else, what is the something else?
"Create a program that reads a file of numbers and uses these numbers to draw shapes with Turtle Graphics. The first number should be interpreted as an angle that the turtle should rotate to the right. Other numbers should be interpreted as the turtle going forward and drawing. Third numbers should be interpreted as an angle that the turtle should rotate to the right. The fourth number should be interpreted as the turtle going forward and drawing. And so on until the file is finished. Text that cannot be converted to numbers should be interpreted as a color, and the turtle's pen should be set to this color. Color names should be color names in plain English, without open spaces, newline characters or other punctuation."
I posted the .txt file in question above