|
|
|
|
|
by secret-noun
947 days ago
|
|
I felt like the naming was a little unintuitive here. `forward` and `left` seem to be directions of movement (especially if I want the painter to "move left"). Instead, `forward` means to draw/move, while `left` is a CCW rotation (even though it supports a negative argument) call paint.draw(10)
call paint.rotate(90) // or even rotate("up")
speaks better to me. |
|
Python also comes with an implementation: https://docs.python.org/3/library/turtle.html
I agree that the paint prefix doesn’t quite match that conception.