search for: turtlebasic

Displaying 1 result from an estimated 1 matches for "turtlebasic".

2003 Oct 27
1
Difficulties with R.oo (static fields, etc.)
...t instance of a class (i.e., to initialize value of static fields only once) 3) I am not sure how to remove/delete cleanly existing instances. In particular, I don't know how to reset tcktk when the last instance is deleted. Here is the sort of behavior I would like to get: t1<-TurtleBasic() # a window (the Turtle world) with a turtle appears forward(t1,50) # the turtle moves (turtle's state is also updated) turn(t1,pi/2) forward(t1,50) t2<-TurtleBasic() # a second turtle in the Turtle world appears turn(t2,pi/2) # second turtle moves forward(t1,50) delete(t1) # fir...