News for hackers. Stuff that matters.
Re:Show HN: Made this with my daughter to help kids ages 2 t... by Arnavion on Thursday December 26, 2019 @01:13PM (#21885566)
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.)

Re:Show HN: Made this with my daughter to help kids ages 2 t... by joegahona on Thursday December 26, 2019 @04:52PM (#21887131)
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.
Re:Show HN: Made this with my daughter to help kids ages 2 t... by Zecc on Friday December 27, 2019 @03:23AM (#21889948)
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.

Re:Show HN: Made this with my daughter to help kids ages 2 t... by cbanek on Thursday December 26, 2019 @02:19PM (#21885986)
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.
Re:Show HN: Made this with my daughter to help kids ages 2 t... by ech085 on Sunday December 29, 2019 @06:39PM (#21909446)
The bug is fixed, thanks for pointing this out!