Hacker News new | ask | show | jobs
by Tronchenbiais 1733 days ago
> Would be happy to hear if you have suggestions for that :)

I would just make sure everything uses simple parameters. The "Making Waves" puzzle is easy to figure out by trial and error, because the values to guess are simple.

One thing that is particularly hard to guess is the "Spiraling into control" puzzle, because the parameters you have to guess are tied to the value of the time increment for drawing the curves. The parametric equation to that curve is currently :

x(t) = 8 + t * cos(A * 2 * PI * t)

y(t) = 8 + t * sin(A * 2 * PI * t)

where A is the ratio between the `t` increment (0.4) and the angle increment (PI/36) (or is it the other way around?). That ratio is just too hard too guess. I would just rewrite the solution to make the constant A easy to guess, so that people writing code with different increments and just playing around with the constant can eventually figure it out.

The Ying-Yang one is harder to simplify, because the result will not look as good. Maybe add an hint?

1 comments

Thanks a lot for the suggestions!

I added hints to the Yin-Yang one. Regarding the spiral, I get what you say, but I've found that more convenient parameters yield spirals that I like much less. I broke down the hints so that it's less spoiler-y, hope this makes for a better experience.