Hacker News new | ask | show | jobs
by gurgunday 954 days ago
Agreed, it really works too well for how simple it is!

We implemented it in ES6 as part of a uni project if anyone's interested: https://github.com/gurgunday/onedollar-unistroke-es6

2 comments

I tried 4 different shapes (circle, rectangle, triangle and heart) and it always said "Ellipse with score ...".
From the README:

> By default, it recognizes three shapes: Arrow, Check mark, and Ellipse.

> You can add more templates by drawing them and clicking on the Add Template button.

It worked well for the three - except a clockwise circle wouldn't work, only a counter-clockwise.

it works really well if all you are drawing is an eclipse ¯\_(ツ)_/¯. Could be a bug in the client or your implementation of $1.