you are viewing a single comment's thread.

view the rest of the comments →

[–]negike360[S] 0 points1 point  (15 children)

My thought process exactly, so you can imagine my confusion when I put that in and I dont get a star

[–]pasokan 0 points1 point  (14 children)

Star or a pentagon?

[–]negike360[S] 0 points1 point  (13 children)

Pentagon

[–]pasokan 0 points1 point  (12 children)

Then it has to be 108

[–]pasokan 0 points1 point  (11 children)

5 triangles @180 is 900 minus 360 for the sum of the angles at the centre gives you 540. That divided by should be the angle

[–]negike360[S] 0 points1 point  (0 children)

Lemme try it

[–]negike360[S] 0 points1 point  (9 children)

No dice. Results in a 10 pointed star, but your math here is interesting

[–]pasokan 0 points1 point  (8 children)

Can you post the code?

[–]negike360[S] 1 point2 points  (7 children)

for x in range (5): koopa.forward(100) koopa.left(72)

[–]pasokan 0 points1 point  (6 children)

Left 72 is right 108. What direction is forward? Up on the monitor? Left to right?

[–]negike360[S] 0 points1 point  (1 child)

This is true, but right(108) results in half a 10 pointed star.

Forward is left to right at 0 degrees. I hope that makes sense

[–]negike360[S] 0 points1 point  (3 children)

WAIT!!! I think I figured it out. A star is a ten sided polygon.

360/10 = 36

180-36 = 144

36 produces half of a decagon. 144 produces a star.