Hacker News new | ask | show | jobs
by Arnavion 2363 days ago
Nice. The source is also very readable so I imagine it would also be useful to teach an older child about programming.

I hit a bug though - level 7 generated a "how many cats are spinning" question whose answer is 10, but there's no "10" button and trying to type "1" "0" fails at the first "1". But I see `cats_for_level` allows there to be `level + 5` cats, so is there some way to input an answer greater than 9?

Also, is it not confusing to have cats that are "also" ducks, rather than have a different kind of cat? Like cats with different-colored noses or have their mouth open. (In that puzzle 5 of the spinning cats are cats and the other 5 are ducks. But the dev console log does say it wants 10, not 5.)

4 comments

The ducks-as-cats part threw me too. Either they are ducks or they are cats dressed as ducks. "How many ducks are cats" doesn't make sense.
I got 12 cats and I tried all the buttons. Of course none worked. Checking the source I see the fault in line 296:

    max_cats = level + 5;
At level 7 that's a possible maximum of 12.

Edit: you've pointed this out in your comment and I somehow missed it.

I also hit a question on the highest level where I think the answer was 11, but there was no way to input a 2 digit number.
The bug is fixed, thanks for pointing this out!