MCPcopy Create free account
hub / github.com/aosabook/500lines / forward

Function forward

blockcode/code/turtle.js:95–95  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

93 function hideTurtle(){ visible = false; }
94 function showTurtle(){ visible = true; }
95 function forward(block){ _moveForward(Block.value(block)); }
96 function back(block){ _moveForward(-Block.value(block)); }
97 function circle(block){ drawCircle(Block.value(block)); }
98 function _turn(degrees){ direction += deg2rad(degrees); }

Callers

nothing calls this directly

Calls 2

_moveForwardFunction · 0.85
valueMethod · 0.80

Tested by

no test coverage detected