MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / _go

Method _go

Python/Turtle.py:1501–1504  ·  view source on GitHub ↗

move turtle forward by specified distance

(self, distance)

Source from the content-addressed store, hash-verified

1499 self._setDegreesPerAU(2*math.pi)
1500
1501 def _go(self, distance):
1502 """move turtle forward by specified distance"""
1503 ende = self._position + self._orient * distance
1504 self._goto(ende)
1505
1506 def _rotate(self, angle):
1507 """Turn turtle counterclockwise by specified angle if angle > 0."""

Callers 3

forwardMethod · 0.95
backMethod · 0.95
circleMethod · 0.95

Calls 1

_gotoMethod · 0.95

Tested by

no test coverage detected