Hacker News new | ask | show | jobs
by gus_massa 7 days ago
I tried to enter 3*5 but it expects 3x5. Perhaps autonvert * to x too.

For advanced levels, it would be nice to have asteroids with common factors, like 30 and 36 so it's better to split it like 5x6 and 6x6 to save a shot later.

1 comments

Thanks, will add *. Really like that idea about common factors, will think about how to implement
Three additional ideas:

* I wondered when 24 is decomposed as 2x12 and 12x2 cause a different effect, but I tested and they are equivalent, the games picks the smallest factor and creates 2 asteroids of size 12. Perhaps the game can pick always the first or the second. I'm not sure which is more intuitive, probably the first.

* For an advanced level, you can create a megameteorite like 5292000. It teaches a few divisibility rules.

* I tried for 24 to write 2x2x2x3 and got surprised it didn't work. Perhaps you can forbid to as a second x.