VeryGayDino / mediacomp-jes

Automatically exported from code.google.com/p/mediacomp-jes
0 stars 0 forks source link

Premature rounding with turtles #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. turtle = makeTurtle(makeWorld())
2. turn(turtle, 70)
3. forward(turtle, 1)

What is the expected output? What do you see instead?

  The turtle position remains unchanged.  It should have moved by a fractional amount, so that the net effect of several small movements is visible.

What version of the product are you using? On what operating system?

  v4.3, MacOS

Please provide any additional information below.

  You are storing the turtle position as an integer, rather than a double.  As a result, it's not possible to create many interesting fractal shapes using your turtle.  Converting to integer screen coordinates should just be a final step in drawing the position.

Original issue reported on code.google.com by jham...@gmail.com on 11 Jun 2010 at 6:20