Wednesday, September 23, 2009

Chapter 9 Listing 9.7

when setposition is called to restore the turtle's position and heading to a previously stored location, the tail should be up. so Lines 16 and following should read:


elif cmd == ']':
pos,head = stateSaver.pop()
aTurtle.up()
aTurtle.setposition(pos)
aTurtle.setheading(head)
aTurtle.down()

No comments:

Post a Comment