DoenetML Coding Puzzles
Basic Geometry
Puzzle 1: Line through a point
Edit the starter code below to create a graph that shows a line passing through a point. When the point is dragged, the line moves with it, rotating around the point’s original location. When the line is clicked and dragged, the line translates with its original slope.
Puzzle 2: Circle with inscribed polygon
Edit the starter code below to create a circle with radius on a graph. Inscribe a regular polygon with any number of sides in this circle.
Bonus Challenge: Have the user specify the number of sides.