Created
December 8, 2012 09:57
-
-
Save smallgeek/4239651 to your computer and use it in GitHub Desktop.
Turtle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace TurtleGraphics.Library | |
| type Turtle = { x: int; y: int; step:float ; angle: float } | |
| with member this.turn a = | |
| { this with angle = (this.angle + a) - float (int this.angle) + float (int this.angle % 360) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment