Today I’m releasing Let’s Play: Ancient Greek Geometry. It’s a Compass and Straightedge tool/puzzle game written in JavaScript. I’ve always thought Geometric Construction felt like a puzzle, so to me this pairing was quite natural. Compass and Straight edge is a technique for constructing shapes out of circles, straight lines, and their intersection points. You can read the wikipedia here – but watch out, some of the gifs are spoilers for the game.

I know that there are a few Compass and Straightedge tools out there already, but none have the simplicity, accessibility or fun of a modern web application, so hopefully mine stands out.

As I said, it’s little bit Geometry tool, and a little bit puzzle game. Throughout development I was conflicted about which was more important. I wanted it to be simple and stripped back enough that you could use this as a go to Compass and Straight edge app, but to make the natural playfulness of geometry to be as visible and as tempting as possible.

In the end I tried to keep the two quite separate. The drawing area is completely free from outside influence, but there is also a “Challenges” box with achievement style goals. Hopefully this shows off the possibilities of construction and encourages people without getting in the way. If you are the type of person who prefers to make their own goals, you are free to ignore it all together.

Considering this is only my third programming project, and 8 months ago I barely knew what JavaScript was, I’m quite happy with how this project came out. In the next week or two I’m planning to post a few things about how it all works and the technical challenges I faced making it.

Truly fantastic. We worked through to Circle Pack 3 (in original circle) before getting completely stuck. Tell Geometry its difficulty curve is way off.

Yeah, the lack of control I had over the difficulty curve gave some stress during development. Giving people more things to do when they get stuck on a shape was one of the motivations to add the “in origin circle” and “in X moves” puzzles. And you can always skip ahead and come back later.

SPOILER ALERT

To flatten the difficulty curve, I suggest that you try adding some intermediate constructions as goals. For example, the basic insight you need for the circles-packed-in-the-unit-circle questions is something like this:

http://sciencevsmagic.net/geo/#0A1.1A0.0L1.0A5.5A0.9L10.10A9.9L6.6L10.10L0.0L9.0L6.9A0.31A0.0A29.9L37.0L15.37L60.60A15.N.9L6.6L10.10L9.9L0.0L6.60A15.0A1

draw a polygon around the unit circle, split it into triangles, and then inscribe a triangle in each of those circles.

So would it be possible to add some “inscribe a circle in a triangle” and “draw a polygon around the circle” questions as hints?

why is this not accept my center point http://www.sciencevsmagic.net/geo/#0A1.1A0.2L3.0L1.0L5.2L5.3L5.5A0.2A0.3A0.0L7.3A4.5A24.2A4.0A42

also this one as well what is the origin center point if this isn’t

http://www.sciencevsmagic.net/geo/#0A1.0L1.1A0.1L5.5A1.7A1.4A0.6A1.3A0.0L2.5L8.1L6.6L16.1L3.3L18.1L4.4L15.1L7.7L17.16A6.8A5.17A7.15A4.2A0.18A3.1A19

For all the “in origin circle” puzzles, the shape must be in a circle with one starting point at its center and the other at its edge. Like this: http://www.sciencevsmagic.net/geo/#1A0.0A1.3A0.0L4.2A0.0L8.2L3.13A0.12A0.0A12.13L27.0L1.42A0.N.42A0.1A42.1L4.1L3.1L8.1L43.1L2.1A50.79A3.75A4.72A43.78A8.71A2.1A0.N.1A50.72A43.75A4.79A3.42A0.71A2.78A8.1A0

This is pure brilliance. I am hooked. Thank you. Now to attack the final 7 challenges!

Can you confirm that all the challenges are possible in the lower number of moves? The square seems particularly doubtful in 8 moves. Also “circle pack 7″ is possible in 13, if the lower numbers are meant to be minimal.

I assure you they are all possible.

If you need a hint I will tell you that the 8 move square is also an “in origin circle” solution. And don’t forget that extending existing lines is “free”.

As for the circle pack 7, the minimal scores were just the best I found during development. I was hoping that someone would be able to surprise me with a better one and I haven’t been disappointed. Maybe I should go back and change it now there is a new record, but I think it’s kind of fun for people for people to know when they have bested me.

Got them all, now can sleep. Will be using this in teaching soon.

What other minimal scores have been beaten?

Congratulations!

So far I only know of the circle pack 7. I hope more start to show up though.

I would love to hear how it goes in teaching, its really exciting that the game encourages people to engage with mathematics in a different way than usual.

I found a 14 move pentagon

[SPOILERS] http://sciencevsmagic.net/geo/#0A1.1A0.0L1.2L3.6A0.8A6.3L15.15L1.15A8.15L28.1A28.2L34.0L30.30L34.0A34.49L1.49L34

I tried to make a real 17-gon too, not sure what went wrong. I improved yours to 65 moves though:

Thanks, really enjoying this. The square-in-8 one is driving me nuts too, though I’m only at 30/40 so plenty left really.

Well at 40/40, but still haven’t hit the minimum moves on 5. Any way you can link to an “official” place to discuss these with spoilers? I don’t want to pollute this space with details.

I think I have spoiler tags installed.

Use [spoil*er] and [/spoil*er] without the *s to use them.

Well, there is a bug somewhere.

Well that didn’t work.

Sorry, I meant [spoil*er] without the s. I’ve edited out comments to fix them.

Sorry about the bug. I can’t make any promises about the behavior of the Easter egg polygons.

Can’t nest deeper so responding here.

Thanks! That looks like the same construction I used, so I probably just made a mistake. Other than them occasionally disappearing from the list, everything works great. Thanks for checking for me!

Finally got the minimum number of moves for the square, octagon, and circle pack 4! Thanks again for making this.

Loving this little piece of programming!

Still 12 challenges to go but it has been pretty damn fun already. brings back some geometry q n a’s

keep up the nice work on this site!

Nico, this work is amazing! It is elegant and simple to use. I have always meant to try my hand at this sort of geometry and this was a challenging and fun way to do it. I did have to get some hints for the pentagons, but I discovered the pack 3 circles through just messing about. Brilliant!

It would be nice to have the numbers counted separately for the construction vs in-original-circle. Otherwise you can construct something in the minimum steps and then take hundreds of steps to do the in-original-circle ones and your scoreboard looks the same at first glance.

You could also add exscribed figure challenges as these are simple to understand but present a different (harder?) challenge.

Thanks again for this wonderful tool/toy. May everything you make be this good.

Am I missing something? I don’t seem to be able to draw lines that go _through_ a point.

E.g.

http://sciencevsmagic.net/geo/#0A1.1A0.0L1

the points are the end points but I want that line to extend and intersect the circle. Is there something non-ancient-greek about that?

Aha, drag the end-point afterwards.

BTW you might also want to add a compass-only set of problems.

Wow, this is absolutely fantastic. I have nothing really to say, just needed to express my appreciation. The smoothness of this tool is amazing, and it’s a delight to use. Only 17 done so far, but I’m still plowing through!

This is an awesome app. Shelley introduced me to it, and I’ve been trying to optimize existing shapes as well as make good approximations to unconstructable ones. Just now I actually got it to recognize a regular 7-gon!

Weird! and well done!

You’ve exposed the tolerance in my code. I need some because javascript’s rounds off all my numbers – nothing ends up being perfect. But here it’s causing problems. Perhaps I should make it a bit stricter.

9-gon works too:

Hah, nice one. Not sure what you did there, but it’s cool. I also have a 9-gon:

And a fake 17-gon:

How the square in 8 or less moves is done? Are you sure this is possible, nico? I cannot even do less than 9 using the “in original circle” method.

It is definitely possible. I’ll give you another clue:

and if you are still stuck:

There’s something strange about that spoiler.

Whoops. I’ve fixed it now. Thanks.

But

I’m definitely stuck on this challenge. There must be some obscure gimmicks that I didn’t know.

As Pitarou pointed out, I got one of my clues wrong. It’s fixed now.

Hey, fantastic work. I’m trying to get Challenge Pack 4 in 12 moves, and I thought I had it, but it seems I’m having some difficulty – a point should be clickable and it’s not, and I think it might be a bug?

I’m assuming there’s some other way. One way or another, any help / hints appreciated.

How many moves do you have for circle pack 3 in origin circle? I have it down to 15 but it looks so ugly that I’m holding out for a cleaner solution.

My bests for in-origin circle problems are as follows:

triangle: 6

hexagon: 14

circle pack 2: 9

square: 8

circle pack 3: 15

circle pack 7: 15

octagon: 15

dodecagon: 22

circle pack 4: 18

pentagon: 16

Some improvements I have:

hexagon in origin circle: 10

circle pack 2 in origin circle: 7

circle pack 3 in origin circle: 13

dodecagon in origin circle: 20

circle pack 4 in origin circle: 13

Circle pack 3 in origin circle: 10 moves

Pentagon in origin circle: 15 moves

Pentagon in origin circle: 14 moves

Wow, I didn’t think a pentagon in origin circle could be done under 15. Great job!

Pentagon in origin circle: 13 moves !

Pentagon in origin circle: 11 moves.

11 moves, wat? Can I have a hint?

Sure: the important insight was that, if you imagine extending the pentagon’s sides into a star, then constructing a point of the star allows you to draw two sides of the pentagon without finding all of its vertices beforehand.

Meanwhile, I just found

Dodecagon: 17 moves

Dodecagon in origin circle: 18 moves

Hexagon in origin circle: 9 moves

Octagon in origin circle: 14 moves

Dodecagon in origin circle: 17 moves

Circle pack 4 in origin circle: 12 moves

Whats your hint for dodecagon in 17?

A hint for hexagon in 9, octagon in 14, and dodecagon in 17:

I’m still stuck on pentagon in 11 though :p

It’s based on the same trick with stars—that’s enough to get you 18 without much trouble. But there are multiple ways to extend the sides of a dodecagon to a star, and one of them has a beautiful coincidence with the circles you’ve already drawn.

After I posted that last night I ended up finding the 18 on my own! Star based construction definitely seems to be the way to go.

There’s an appealing symmetry to this 14-move Pentagon in origin circle:

http://sciencevsmagic.net/geo/#0A1.1A0.2A0.5L0.0L7.6A0.8L9.13A3.22A0.26L6.6L27.23A0.26L56.56L55.55L27/spoiler

Hmm … 11 eh ?

I was just re-running my brute force pentagon in origin circle (22ish), after getting a plain pentagon down to 15, when I noticed a coincidence; when I’d worked out why that happened, and noticed a second coincidence (one of my early construction lines just happened to pass through two points I was doing a lot of work to construct), I found I could get rid of lots. Even so, I was pleasantly surprised to get down to 12. So … 11 eh ?

Just when I thought I could, satisfied, put this toy on one side …

Circle pack 7 in origin circle: 14 moves

circle 7 can be done in 13. Not in origin tho.

http://www.sciencevsmagic.net/geo/#0A1.1A0.0L1.1L5.5A1.0A5.0L2.2L14.0L13.0L11.0L3.3L17.0L16.14A2.16A15.11A4.13A12.17A3.0A8

Yeah, that was reported by Edmund Harriss last week (http://blog.sciencevsmagic.net/science/lets-play-ancient-greek-geometry/#comment-71).

I have managed a 14 move pentagon http://sciencevsmagic.net/geo/#0A1.1L0.1A2.2A3.3A2.5L6.9L0.0L12.9A10.18L17.9A11.32L8.8L33.33L18.17L32

How to construct a octagon in 15 moves? My best attempt is 17 moves:

http://www.sciencevsmagic.net/geo/#0A1.1A0.2L0.0L4.2L1.1L5.5L4.3L2.4L1.0L5.6A0.0L1.11A0.14A6.N.11A0.6A0.14A6.2L4.4L5.5L2

geometry for the lols

A really wonderful webpage. Two suggestions: I’d like to be able to create a random point, rather than construct it, and I’d like to be able to copy a length from one place to the other, although I’m not sure how that would be implemented nicely.

Being able to just copy a length would be outside of the bounds of traditional compass and straight edge, because it requires a “sticky” compass.

You can copy a length with a sequence of straight edge and compass moves, but it would change the nature of the game to make this a separate operation.

I’m absolutely loving this! Lots of fun.

However, I think I’ve solved the circle pack 4 but my solution isn’t being recognized.

http://sciencevsmagic.net/geo/#1A0.1L0.1L2.2A0.0A2.5L4.8L0.0L7.7L2.2L8.0A7.7A0.27L1.N.7A31.0A31.8A32.2A32.1L86.1A42

Hi Emily,

You got pretty close, but you didn’t quite draw the final circle big enough. If you zoom in on the point(s) where the big circle touches a little circle, you’ll see why/how you missed it. Undo and draw just the last circle again, watching the dots at the intersections very carefully.

Yep! Thanks! I had the right idea, it just snapped to the wrong point at the last second. Got it now.

Your very last circle is slightly wrong; it’s very close to, but not quite, tangent to the other four. It will work if you undo once and redraw it carefully.

Could anyone check my solution for the 2 packed circles, it doesnt get recognized… http://sciencevsmagic.net/geo/#0L1.0A1.1A0.1L2.0A5.2A0

Great game! But I think it’s not recognizing all of my correct solutions. E.g., this one should count for circle pack 7 around the origin circle, right?

http://www.sciencevsmagic.net/geo/#0A1.1A0.2A0.4A0.6A0.6L4.4L2.2L1.1L3.3L8.8L6.0L7.4A13.2A13.6A23.1A34.8A14.3A14.6L0.0A64.0A63

Or am I doing something wrong?

It needs to be within the origin circle, not just around it. Confused me at first, too.

I believe this should give me Circle Pack 4 in 12 moves, but it doesn’t seem to recognise it:

http://www.sciencevsmagic.net/geo/#0A1.1L0.0L2.2A1.1A2.0L4.8A7.7A8.N.4A16.13A10.5A10.14A11.4L26.0A26

Ah my mistake – I can see that the circles don’t quite connect to each other on the inside. They intersect or whatever.

In 9 days, you’ve gotten quite a following already. I don’t remember who mentioned this first, but when it got mentioned again, and I got some help with the interface, I began to love it. I blogged about it here.

It’s lovely, but one of them leaves me puzzled – I’d _swear_ I have the square in circle just right, but it’s not recognizing it at all?

http://sciencevsmagic.net/geo/#0L1.0A1.1A0.3L4.6A3.0L2.1L5.3L7.7L4.4L8.8L3

The circle that it has to be in is the first circle you make. Not just any circle.

Sorry, I’m afraid magic wins:

http://sciencevsmagic.net/geo/#1A0.0A1.3L2.0L1.4A5.5A4.6A4.4A15.15A4.22A4.4A33.33A4.42A4.4A55.55A4.66A4.4A81.81A4.94A4.4A111.111A4.126A4.4A145.145A4.162A4.4A183.183A4.202A4.4A223.223A4.242A4.4A263.263A4.4A303.282A4.303A4.306A4.4A345.345A4.4A389.366A4.389A4.392A4.4A435.435A4.458A4.4A483.483L506.482L505

Accidentally made one when trying to optimize a nonagon.

http://www.sciencevsmagic.net/geo/#1A0.0L1.1L2.2A0.0A2.5L4.7A1.9L10.10L18.2A1.2L25.25L31.7A16.25A29.37L47.47L49.1L25.2A57.57L64.1L79.79L96.2L92.1L106.N.1A0.2A121.121A2.142A121.21A142.184A21.198A204.206A198.210A207.218A210.2L142.142L184.184L206.206L218.210L231.231L348.348L2.198L215.215L392.392L348.21L200.200L433.392L433.142L193.193L469

wow i just made a 48-gon in 94 moves now working on a 96-gon way to close lines ftw

http://blog.sciencevsmagic.net/science/lets-play-ancient-greek-geometry/#comment-140 here’s the link of my 48-gon

okey i could have done it in way less moves

Yes indeed.

10-gon: 16 moves

15-gon: 22 moves

16-gon: 23 moves

17-gon: 40 moves

20-gon: 29 moves

24-gon: 30 moves

30-gon: 38 moves

32-gon: 41 moves

34-gon: 57 moves

40-gon: 49 moves

48-gon: 56 moves

Hmm. Hey nicomallo, maybe it’s time for a high score board?

(Those were all in origin circle, by the way.)

30-gon in origin circle: 37 moves

32-gon in origin circle: 40 moves

http://www.sciencevsmagic.net/geo/#0A1.1A0.2A0.4A0.6A0.8A0.3A0.0L10.9L0.0L7.0L5.0L12.0L11.14A0.16A0.17A0.13A0.18A0.15A0.0L59.0L44.0L50.0L27.0L47.0L33.0L30.0L24.0L36.0L62.0L21.0L53.73A0.75A0.77A0.71A0.69A0.67A0.78A0.76A0.72A0.74A0.70A0.68A0.0L253.0L98.0L228.0L125.0L236.0L267.0L183.0L257.0L210.0L222.0L175.0L242.0L149.0L204.0L139.0L188.0L84.0L169.0L105.0L160.0L120.0L134.0L273.0L89.294A0.292A0.290A0.288A0.286A0.305A0.295A0.301A0.284A0.303A0.297A0.299A0.293A0.291A0.289A0.285A0.287A0.283A0.306A0.304A0.302A0.298A0.300A0.296A0.553L0.0L873.917L0.847L0.0L815.631L0.0L769.0L486.0L756.438L0.0L404.708L0.0L570.352L0.0L588.320L0.0L683.0L1101.0L518.0L1074.0L648.0L1121.0L471.0L1054.0L451.0L399.0L992.0L367.0L1011.0L937.0L312.0L890.0L1107.913L0.0L1068.857L0.0L1135.801L0.1035L0.786L0.0L1016.740L0.0L671.525L0.1191L73.73L1156.1156L295.295L1157.1157L6.6L1160.1160L301.301L1162.1162L75.75L1164.1164L303.303L1165.1165L15.15L1169.1169L305.305L1168.1168L77.77L1172.1172L284.284L1173.1173L4.4L1176.1176L286.286L1177.1177L68.68L1180.1180L288.288L1182.1182L18.18L1184.1184L290.290L1186.1186L70.70L1188.1188L292.292L1148.1148L2.2L1149.1149L294.294L1190.1190L72.1152L300.72L1152.300L1194.1194L13.13L1154.1154L298.298L1192.1192L74.74L1155.1155L296.296L5281.296L1158.1158L1.1L1159.1159L302.302L1161.1161L76.1163L76.1163L304.304L1166.1166L16.16L1170.1170L306.306L1167.1167L78.78L1171.1171L283.283L1174.1174L3.3L1175.0L948.0L604.976L0.716L0.1175L285.285L1178.1178L67.67L1179.1179L287.287L1181.1181L17.17L1183.1183L289.289L1185.1185L69.69L1187.1187L291.291L1147.1147L8.8L1150.1150L293.293L1189.1189L71.71L1151.1151L299.299L1193.1193L14.14L1153.1153L297.297L1191 i hope your pc can handle it 96-gon

why doesn’t this count as a octagon?http://www.sciencevsmagic.net/geo/#0A1.1A0.0L1.3L2.6A0.2A6.3A6.6L9.6L12.6L18.17L6.0L29.29L7.7L25.25L1.1L30.30L8.8L26.26L0

Because it isn’t a regular octogon? The diagonals do not bisect the right angles.

You drew the last two circles (the two centered on the vertical axis) incorrectly. They should use the diagonal of the center circle as a radius. They way they are drawn, they are using the endpoints of the vertical line segment as centers and are tangent to each other at the center of the octagon.

thanks blaise i fixed it

what exactly are the paramiters for “in origin circle” as this is the first time i have even touched geometry on this level i don’t understand therefore cannot complete the goals

After you hit “reset” there are two points, and there are three things you can do: make a line between the two points, or create one of two circles, each centered on one of the points and passing through the other.

Either of those two possible original circles works as an “origin” circle. I suspect, without testing, that any circle who’s radius is the same as the distance between the first two points would also count.

i’m having the same problem though the middle point of my first circle is the middle of my 3-circle still it doesn’t recognizes it as an in origin circle awnser http://www.sciencevsmagic.net/geo/#0A1.1A0.1L0.0L4.2L3.3L4.2A6.3A6.4A18.0A23

You have a centered 3-packed circles, but the circles are packed within an “origin circle”.

Imagine the circle you get in step 1 as “given”, and put the 3-packed circles within it. Then you’ll get it.

Here’s a 3-packed circles in origin circle done in 17 moves. I don’t claim it’s optimal, but it shows what “in origin circle” means in this case.

I’m having a hard time with something. After creating the 9-move 3-pack (http://sciencevsmagic.net/geo/#0A1.1A0.3A0.5A1.6A1.7A3.1L7.3L6.16A15), I want to create the triangle whose vertices are the points where the packed circles are tangent to the outer circle. Those points should already be created (right? basic construction: create the one or two points where two circles intersect), but I can’t seem to select them.

Now, obviously, I can pin down those points with lines (two of them with lines that already exist), but I don’t think I should have to. Am I just misunderstanding what’s possible?

how do you make the sqaure in 8 turns i feal so stupid right now

A previous hint said it was (a) inside an origin circle, (b) was done with three circles and (c) five lines. I’ll go farther by saying that the three circles are all the same size, and can be made before any lines are made.

The first line I drew I needed to extend, but extending a line is a free act (the Euclidean postulates say that a line goes through two points, not that a line segment is terminated by two points).

Is that enough to help?

oh god thank you i finnaly finished it http://www.sciencevsmagic.net/geo/#1A0.0A1.3A0.2L3.3L7.7L5.5L6.6L4.4L7

That answers one question I had… does it count as being in the origin circle if it isn’t in a unit circle centered on one of the first two points? And the answer is no.

Believe it or not, this is not the square-in-8 I was thinking of. I was thinking of a different square-in-8 that also counts as in the origin circle. If you draw the first line 120 degrees rotated from where you did, the square will end up in the origin circle.

120 degrees? how?

I see it now

Ideas/pleas for version 2…

Have a way to erase lines. Once I’ve bisected a line, I’d like to remove the circles I needed to get there.

Add extra dots before starting. (For the puzzle – Starting from three dots, draw a circle that goes through all three dots.)

… i just made a 2-gon http://sciencevsmagic.net/geo/#1A0.0A1.3L2.0L1.4A5.5A4.6A4.4A15.15A4.22A4.4A33.33A4.42A4.4A55.55A4.66A4.4A81.81A4.94A4.4A111.111A4.126A4.4A145.145A4.162A4.4A183.183A4.202A4.4A223.223A4.242A4.4A263.263A4.4A303.282A4.303A4.306A4.4A345.345A4.4A389.366A4.389A4.392A4.4A435.435A4.458A4.4A483.483L506.482L505.482L793

Hahaha, well done.

My app assumes that two line segments with sufficiently similar angles are supposed to be same and it’s 64-bit floating point numbers that are to blame for the discrepancy. (with maybe a little too much tolerance). So here your four line shape is treated as though it’s a two line one.

minimum moves for 2-gon http://www.sciencevsmagic.net/geo/#1A0.0A1.3L2.0L1.4A5.5A4.6A4.4A15.15A4.22A4.4A33.33A4.42A4.4A55.55A4.66A4.4A81.81A4.94A4.4A111.111A4.126A4.4A145.145A4.162A4.4A183.183A4.202A4.4A223.223A4.242A4.4A263.282L263.262L281

Nope.

http://www.sciencevsmagic.net/geo/#0A1.1A0.1L0.0L4.1L5.4A5.5A4.4L6.5L9.6A9.9A6.4L2.2L20.4L17.7L0.0L28.11A28.12L7.7L41.41A40.41L52.52A40.52L63.63A40.63L74.66L74.66A87.92L74.90L74

Actually tried this time.

Haven’t been able to get less for an hour.

http://www.sciencevsmagic.net/geo/#0L1.1A0.1L2.2A0.2L3.3A0.3L4.4A0.4L5.0A5.0L6.0A1.12A0.12L11.33L6.33L38.5L33

sorry this is the minimum 42 moves for 2-gon http://www.sciencevsmagic.net/geo/#1A0.0A1.3L2.0L1.4A5.5A4.6A4.4A15.15A4.22A4.4A33.33A4.42A4.4A55.55A4.66A4.4A81.81A4.94A4.4A111.111A4.126A4.4A145.145A4.162A4.4A183.183A4.202A4.4A223.223A4.242A4.4A263.263A4.4A303.282A4.303L306.324L302

What is a 2-gon? If it’s what I think it is, why isn’t a 1-move solution possible?

i don’t know what it is… it just happened

My app assumes that two line segments with sufficiently similar angles are supposed to be same and it’s 64-bit floating point numbers that are to blame for the discrepancy. (with maybe a little too much tolerance). So here a four line shape is treated as though it’s a two line one.

Nope.

http://www.sciencevsmagic.net/geo/#0A1.1A0.1L0.0L4.1L5.4A5.5A4.4L6.5L9.6A9.9A6.4L2.2L20.4L17.7L0.0L28.11A28.12L7.7L41.41A40.41L52.52A40.52L63.63A40.63L74.66L74.66A87.92L74.90L74

Actually tried this time.

Haven’t been able to get less for an hour.

http://www.sciencevsmagic.net/geo/#0L1.1A0.1L2.2A0.2L3.3A0.3L4.4A0.4L5.0A5.0L6.0A1.12A0.12L11.33L6.33L38.5L33

It doesn’t seem to recognise either http://www.sciencevsmagic.net/geo/#0A1.1A0.2L1.1L3.2A0.6A0.8A0.3A0.9A0.2L6.6L8.8L9.9L3.0L10.0L7.0L5.0L4.0L11.0L12.8A14.6A14.2A17.1A13.3A13.9A18.0L1.0A76.1L78.0A75 or http://www.sciencevsmagic.net/geo/#1A0.0A1.3A0.4A1.6A1.8A1.2A0.3L0.0L2.2L8.8L6.6L4.4L3.5L1.1L11.1L12.1L10.1L9.1L7.3A13.4A18.6A14.8A14.2A17.0A13.1L0.1A76.1L73.1L74.1L4.4L100.1L2.2L101.1L3.3L105.105L106.1A75 as origin-circle circle pack 7s. Is this correct?

That is correct. Neither 7-pack is within the origin circle.

how does one do a pentagon in 11 moves my pentagon record is 14 moves

Brilliant!

I was bored so I drew you guys a circle the size of the known universe (well, 60% larger because I’m generous)… assume that the smallest circle (between the 2 origin points) is the size of a gold atom’s nucleus (8.45 femtometres).

http://tinyurl.com/lxlgrut (link is obnoxiously large without tinyurl shortening)

pokeball lololol http://www.sciencevsmagic.net/geo/#1A0.0L1.1L2.2A1.4L3.1A6.6A1.11L10.1A14.N.1A14.0L23.14L2.1A0.14A1.25L24.1A28.N.1A28.1A14.1A0.0L23.14L2

smallest circle possible http://www.sciencevsmagic.net/geo/#1A0.0A1.3L2.1L0.4A0.1A4.12L11.4A14.14A1.25L24.4A28.28A4.45L44.4A48.48A4.67L66.4A70.70A4.91L90.4A94.94A4.113L112.4A116.116A4.137L136.4A140.140A4.4L140.N.4A140.4A116.4A94.4A70.4A48.4A28.4A14.4A0.4A138.4A114.4A92.4A68.4A26.4A46

dear nicomallo you should make a app out off this for iPad and playstore i would love to play this in the train without bringing my dad’s laptop i think that you would really benefit of the touch screen you could zoom in and out by either using two fingers going up for zooming in and down for zooming out

The page has touch controls and works fine of the iPad I used for testing (although I’m not sure if it works on older ones). You should be able to save the page to your home screen if you want to use it like an app.

Try it out and let me know what you think.

just played it on my iPad4 i think it’s awesome i didn’t really expect it to work but it does it can be a little laggy but everything ells works awesome

This is awesome! I’ve wasted more time here than I care to think about.

One note: It would be nice to have a “center” function. I managed to trip over my trackpad, and zoom my image down really small then sweep it off the visible screen, and after that could not get it to reappear in my view again. This was especially annoying as I was working on the pentagon!

But I’m impressed if this is only your third program. Kudos, I’ve been enjoying it quite a bit!

Thanks.

Refreshing the page will center your construction.

http://sciencevsmagic.net/geo/#0A1.1A0.2A3.4A0.0A5

Why is this no valid solution for circle pack 2 with 5 moves?

It registers fine for me.

Perhaps you have already solved it in 5 moves. The shape will only go dark if you create an improved solution (fewer moves for either the default or in origin solution). This is to avoid having shapes go dark all over the place whenever you retrace your steps.

If you want to double check a solution that is no better then one you have, use a private browsing window so it is in a different browser session.

Ah ok, I did this solution on first try

I have a similiar problem. I have this solution: http://sciencevsmagic.net/geo/#0A1.1A0.0L1.0L4.4A0.0A5 on the first try. It did register that I solved it in 5 moves, but not that I solved it in origin circle. Am I missing something?

Nvm, the origin circle seems to be the first circle that I draw and not a circle that has one of the two starting points as it’s centre. My mistake.

Nico,

Have you watched any video’s by Scott Onstott? Check out his youtube channel!

Hi!

Great game. Is there any way to save drawings made on this?

copy and paste the link to a text program like word if you click the link your drawing is opened

First of all, fantastic job! The app is really nice. I absolutely love the “challenge” aspect. A few ideas —

-Maybe keep a list on the site somewhere of solutions people have found, including the ones in the fewest number of moves?

-Maybe include some way for people to make (and maybe post) their own challenges?

-It would not be too difficult to write a program to search for minimal solutions to the problems; perhaps you could use this to generate “minimal move” targets/give people some way to know they’ve found a solution with as few moves as possible?

-Maybe also include some tool that can measure angles and lengths (assuming the distance between the first two points is 1) so people can check to make sure they’ve constructed what they think they have (of course this couldn’t be used to actually construct anything, it would just be a self-check tool).

I dunno if you plan to do any more with this but I think these changes would be really cool!

Thanks Max,

I would love it if people could create their own challenges. Maybe if I create a version 2 one day….

A bot that looks for minimal solutions sounds great, my source is available in the page, so anyone could write one.

As is my app isn’t clever enough to know the exact values of lines in relation to the starting line. It just uses floating point values, so I think a ruler would be a bit of a disappointment.

Is there a good definition of “in origin circle?” What defines the “origin circle?” I’ve managed to do some of the constructions centered about one of the two original points but that doesn’t seem to satisfy the “in origin circle.” Is the origin circle the circle defined with the center at one of the points and having the other point on its circumference?

Definitely fun though!

circle 7-pack in 13 moves:

[SPOILER]test[/SPOILER]

oops, let’s try that again.

The origin circle is the first circle you create, so far as I can tell.

So it seems. Thx, this helped me progres

Circle pack 5. not in origin circle though.

Great fun. Does this get recognised.

Circle pack 7 in 13 moves:

Beat all the challenges, but my save reset. Oh well, glad it happened now.

For anyone who has done all the secret challenges and wants another one, try the Nepali flag. It has a geometric construction defined on its wiki page, and doesn’t seem too hard to do.

http://en.wikipedia.org/wiki/Flag_of_Nepal#Flag_layout

What is the meaning of the two numbers on the right of each challenge? The right most one seems to be the minimum number of moves. What about the left one?

It’s just an easier goal for people who are just starting to optimize. I put in numbers that I thought would be relatively obtainable.

The right most number was my lowest number of moves as of release, but lots of them have since been beaten, some by quite a bit.

If I make a version 2 I’ll probably use the new best minimums.

It is not working when I use Google Chrome. Is this expected? How can I solve this problem?

About 15 hours and: CHALLENGES 40/40

Thank you for this puzzlers!

There is 44 challenges though!

I completed all tasks, both levels, but still got only 37/40 points :o(. Any ideas why?

I haven’t heard of that problem before. Perhaps double check that you have all four challenges solved on each shape.

This has got to be the best game I have ever played. I feel like it was designed just for me.

It took a few weeks, but I have completed all the challenges.

Please, please, won’t you add some more?

Thank you!

Sincerely,

Erik Mulet

Thanks so much Erik. I thought I was designing it just for me, but I guess there are quite a few of us.

If you like you can create regular polygons that aren’t listed (like a decagon) and they will pop in, so it’s possible to get more then 40 points.

Many shapes can be made in fewer moves then my challenges, try looking through the comments here for other people’s scores and try to match them.

If you have any ideas for a whole new kind of challenge, let me know. I’m open to the idea of adding some more, but only if they make sense among the others.

Well done!!!

Here’s an octagon in 13:

http://sciencevsmagic.net/geo/#1A0.0A1.3A0.3L2.3L6.6L4.4L8.6L5.5L9.5L7.7L11.4L7.7L15.7A3.23L22.23L29.24L21.21L36.30L35.29L36

Pingback: pascal

Hi all,

Just a question to understand the rules: In the following example, following the paradigm that lines should have infinite length (extend for free), shouldn’t I be able to create a circle with its center at the intersection of the line and the circle on the OUTSIDE areas (left or right)?

http://sciencevsmagic.net/geo/#0L1.0A1.1A0

On paper that would work of course, but here I do not get an option to snap to that intersection.

You’ll have to first click on a point along the line you want to intersect and extend it out to the point you describe. The intersection at that point will otherwise remain hidden.

But as you say, extension is free.Because the line already exists this won’t count as a move for the purposes of the challenges.

Pingback: Ancient Greek Geometry | Superlevel

Pingback: Google

Hi, found your site due to a recommendation in a local (German) computer magazine (c’t).

Simply great!

(Even with – or maybe due to – the “rudimentary” surface, I personally prefer prompts instead of windows).

Suggestion of mine for a new “challenge”: a=1 or r=1 rsp. (“origin line” instead of “origin circle”).

Some of these are already solved thru the current things but some of them (e.g. octogon) require more steps than the “independent minimum”.

Once again: Congratulations!

H.-C.

I really like this new challenge idea! Solving the octagon this morning was lots of fun. Thanks HC.

If I make version 2.0, it will have to include this!

Is this what you had in mind, an octagon where one side is the initial unit segment?

http://www.sciencevsmagic.net/geo/#0A1.1A0.0L1.3L2.6A0.1L8.8L11.0L11.11L12.12A0.0L16.1L17.11L20.16L20.12L21.1L10.10L17.17L32.32L21.21L34.34L20.39L21 (15 moves)

Nicely done, my best was 15 as well.

http://sciencevsmagic.net/geo/#0A1.1A0.0L1.2L3.6A0.8A0.3L12.12A0.7L0.0L13.7L1.1L14.12A7.0L25.25L13.13L33.1L26.26L14.14L37.37L33.32L42.41L36

Aha—but one of your circles is unnecessary, so you can do it in 14 moves, matching the origin circle record.

This toy is so simple, so profound and so beautiful. Thank you! I have a copy of Euclid’s Geometry and would like to work through it using your program as an aid. Is there any chance you might add the option of disabling the challenges and the search algorithm that goes along with them? I guess what I’m asking for is… creative mode! Seriously, thank you so much for this truly wondrous little thing.

Thanks Aaron.

If the challenges box is bothering you, the best solution might be to hide the div using a browser extension. The search algorithm won’t do too much then apart from the occasional shading (which becomes less often as your solutions fill in).

The challenges never change what you have drawn, so I see the default as “creative mode”.

great app! Holy that 8-move square was hard. Anyway, this should be a challenge as well:

http://sciencevsmagic.net/geo/#0L1.0A1.1A0.1A2.0L2.1L5.5L6.5A0.6A5.5A1.11A6.2A0.2L27.27A2.27L30.30A27.11L22.6L11.30L33.33A30.33L36.19L21.N.33A30.34L31.31L28.28L23.23L4.4L15.15L16.16L21.19A16.18A17.35L32.32L29.29L74.74L73.74L17.36L33.17L20

(be warned its a little crude)

What the smallest number in challenges mean? Is it just for simple case or for the “origin circle” case too?

PS. Question is because the best I have for “circle pack 7 in origin circle” is 15, not 14.

Yes! Now I have 14! What a fun!

I have overlooked a simpler challenges again and it looks like that small number is not always achivable with “origin circle”. It is obvious for some cases. So I was overtrying with “circle pack 7″.

For some additional fun:

* Draw an equilateral (triangle, square, pentagon, hexagon, etc.) that is exactly tangent to the origin circle (my current best: triangle, 9 moves; square, 12 moves; and hexagon, 15 moves)

* Construct a set of Pythagorean 3-4-5 squares (my current best is 27 moves, but it’s probably possible to do much better than that)

* Duplicate the effort of Dürer & Pacioli, et al., and use the compass & straightedge technique to construct “perfect”-weight Roman-style serif letters (e.g. http://www.identifont.com/show?DGK or http://luc.devroye.org/fonts-41587.html), though that might be too hard without a “marked ruler” or a “fixed compass”

origin circle circumscribed triangle: 6 moves

origin circle circumscribed square: 10 moves

origin circle circumscribed hexagon: 11 moves

It would be helpful if I could delete or hide lines and circles.

It would be much easier if I could delete things that I know are only for previous constructions.

By the way, this game is great! I just wanted to say that it is a really fun and challenging game.

Can someone explain the circle four pack in 12 moves? It’s driving me crazy.

Hi, it’s H.-C. again.

I had a break and today (boring Sunday) remebered this tiny little fun.

In case of “Version 2″ (or whatever number) what about an option to fill regions with “black” (I think colors would not be convenient for this page). Something like “right click” etc.

So to have an opportunity to create “something”, then press E to have all lines in gray, fill all necessary areas and see what you tried to create …

My first idea was according to the Euro symbol – unfortunately this needs an nonagon which is impossible to be created. Nevertheless it would be a great fun to do something like this …

hi all i was trying to see if this functioned in your thingy:

http://omnicentre.ca/ultima/Visualizations/trianglesandSquares.swf

and i got to about here (which has the pentagon facing the opposite direction, at this point i’d need to make another 5 of the pentagonal guides in the other plane but the graph is just too complex at this point to pin properly)

which is sorta pretty in its own right

http://sciencevsmagic.net/geo/#0A1.1A0.2A0.4A0.6A0.8A0.3A0.6L2.2L3.3L6.N.4L3.6L1.2L8.N.0A25.0L7.0L29.0L12.0L30.52A0.56A0.68A0.51A0.87A0.55A0.N.55L56.56L51.51L55.47L4.47L8.28L2.28L3.53L87.53L68.N.54L53.54L145.154A53.206L54.54A206.54L255.54L256.255A54.255L360.377A255.360L441.441A366.441L256.256A54.N.255L54.256L54.441L256.441L360.360L255.55L56.55L51.51L56

can anyone tell me if that flash file i pointed to is actually geometrically true? I’ve done a lot of versions by hand and it seems really, really close, but without the whatnots to pin it too I can’t really tell if this is actually the construction to make the perfect square-inside-the-triangle or not. <3

This is brilliant. I am having a fun time with it, and it’s 90 degrees F outside in PR.

“What is Mathematics” by Courant and Robbins has a brief but concise description of constructions, up to finding a square root.

Maybe version 2 could have one free point as well, that the user could position at the start. Check out my geometry program GEOSTRUCT on mathcomesalive.com

Very nice application! The challenges are very fun and at some points.. frustrating. Overcoming the frustration and completing the puzzles has been gratifying.

A suggestion: to rotate the view/change the viewing angle. New perspectives open new posibilities.

Is there a way to trisect or pentasect an angle?

It doesn’t seem to recognize my pentagon.

http://sciencevsmagic.net/geo/#0A1.1L0.0L2.1A2.2A1.5L0.0L4.1A0.9L10.14A7.7A24.27L7.7L28.28L10.8A10.10L70.70L27

Based on http://www.cut-the-knot.org/pythagoras/pentagon.shtml

Hi, is there a way to reset certain completed challenges?

http://www.sciencevsmagic.net/geo/#0A1.1A0.0L1.1L5.5A1.0A5.5A0.14L15.18L5.5L20.18A20.18L21.21A33.18L0.0L44.44A45.18A19.N.18A20.5A1.18A19

If the biggest circle has a radius of one unit, how large are the radii of the smaller two?

In case anyone cares, I found out that if x idthe smallest circles radius, then x(sqrt(2)+1) is the next circles radius and x(sqrt(2)+1) + x is the largest circles radius

Finally! I got the circle pack 7 in origin circle. I fiddled with it a while and tried to shrink my pack 7 into the origin circle.

Mascheroni had a compass only five step construction that gives the golden section. An additional two steps lays out the five points of a pentagon which gives us a 12 step construction. See: http://www.cut-the-knot.org/pythagoras/MascheroniPentagon.shtml for more info. Here is the solution: http://www.sciencevsmagic.net/geo/#0A1.1A0.3A2.0A5.1A4.8A3.9A3.2L13.2L12.12L21.21L20.20L13

That someone found a way to do it in eleven is amazing, might be worth publishing it.

I managed to get it down to eleven by extending the first two sides, and using the larger circle. A new record for me!

I wonder if this is the same as Anders’ solution.

Thanks for the suggestion. It worked. This program strikes me as really hitting a sweet spot in the realm of puzzles. Do you mind if I hack away at your code? I would like to make a much simpler version. I’m hoping to interest my 8 year old daughter with it.

A student of mine found a 9 steps construction for the 3 circle packed in the original circle. I googled a lot but i did not find anything about. Is this interesting?

I apologize for the mistake. The 3 circle packed in the original circle construction has 10 steps…

Is it possible to modify the original post (9 steps -> 10 steps) and delete this couple of replies, pls?

What a nice blog site it is ! It is a historical and informational site of geometry It discus with science vs magic I have visit this site and play this game and enjoy interesting.Recently I have seen a site like this It is ancient geometry for more information just click here,thanks.

Hi. Sorry to bother you but how “in origin circle” is different than “constructed”? I’ve made such a hexagon without the circle that contains the hexagon being the first one made:

What did I do wrong? Hexagon can’t touch the same circle with every corner?

Sorry, I’m not quite sure what you are asking.

The constructed challenge is awarded the first time you construct the shape, which may or may not be at the same time as other challenges.

It’s possible to have one solution qualify for multiple (or in some cases even all) challenges for a given shape.

Now I understand, thanks.

My mate just managed the 2-GON in 15 moves!

http://sciencevsmagic.net/geo/#0A1.1L0.0L2.2A0.3L1.1A0.1L10.1L8.8A10.14A6.3A6.10L4.6L29.29L38.38L37.37L15.15L4.4L3.3L6

I’ve made 16-gon, 32-gon and 64-gon. Quite boring but I’d like to have all existing challenges. Are there infinitely many challenges (for 2^k-gons)? If not – what is the limit for k? If so – why are you so cruel?

Now I see that there are infinitely many hidden challenges for every k-gon (where k e N and k > 1).

By the way, I managed to construct an inconstructible polygon – heptagon with error 0.0003, building on this algorithm:

http://www.geocities.ws/london_blue_catharin

And here is is:

If you consider it a bug and want to get rid of it here are n’s for which n-gon is inconstructible:

https://oeis.org/A004169

…and I’ve written a program in JavaScript that given x prints all inconstructible polygons with less than x edges:

http://ideone.com/EAGOTh

It’s based on the necessary and sufficient condition for polygon to be constructible:

“A regular n-gon can be constructed with compass and straightedge if n is the product of a power of 2 and any number of distinct Fermat primes.”

The program is simplified and works “only” for polygons with n <= 2^32. Quite practical though.

Woot!!! Same algorithm, 43 moves…

Wow! I beat myself in 10 minutes lol…

Whoa… got the 9-gon done too (the one with 0.0002° error)

Just a HINT. If you want to look at somebody’s solution and not have it remembered as yours in your cookies, open the link in Incognito aka Private mode. In Chrome Ctrl+Shift+N and in Firefox Ctrl+Shift+P.

So I was puzzling over the dodecahedron (and other puzzlements), and was staring at your homepage, and realized I was staring at the solution (I think). Don’t know if you care, but perhaps you might want to switch the design that links to the game/application to something that isn’t a solution to one of the later puzzles?

I finally found a way to dodecagon in 20 moves

http://sciencevsmagic.net/geo/#0A1.1A0.2A0.2L3.2L6.4A0.5A1.0L7.7L1.9L6.6L11.6A2.9L26.26L4.11L27.27L5.7A2.1L55.55L5.0L56.56L4

now the game is beaten!!

Hi,

Can anyone explain me why the game does not accept my pentagon (12 moves, not in origin circle) ?

http://www.sciencevsmagic.net/geo/#0A1.1A0.2L3.3A0.6L5.6L4.6L12.6L8.8L0.0L1.1L12.12A1.2L32.32L12.32L8

Dodecagon in 19 moves:

http://sciencevsmagic.net/geo/#0A1.1A0.2L3.0L1.0L5.2L5.5L3.5A0.8L7.7L1.1L8.N.0L22.22L26.0L25.26A0.25A0.27L25.41L26.40L26.28L25.27L28.41L40

Hi,

I can’t help but wonder if the challenge to complete the in-origin-circle triangle in 5 moves is a mistake. The way I see it, you use 1 move to create the circle, then you will use 3 to create the triangle, so you have just 1 other move to set up the triangle. After creating the origin circle, there are only 2 other possible moves, neither of which set up the triangle. Am I missing something, or is the right column supposed to read 6 for the triangle?

Thanks!

5 steps is correct.

Hint: the triangle is equilateral and you can set up the three vertices in just two moves.

Thanks for the reply. Certainly a triangle is easily constructed in 5 moves, but I’m talking about the triangle specifically inscribed in the origin circle. First move is drawing the origin circle. The only other possible moves after that are to draw a congruent circle centered on the other non-origin point, or draw a radius or diameter line on the origin circle. Neither of those second moves sets up the three vertices of a triangle inscribed in the origin circle.