Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ah, a fun game, with math!

Scrolled through all of the comments, didn't find mention of the spelling mistake right at the top. Sorry, but spelling/grammatical errors often communicate sloppiness. Even when you worked very hard.

"Chosse your oponent"

perhaps:

Choose your opponent:"

and

"you win refresh to go again"

could be

"You won! Refresh to play again" -- you could even add a link to load the page again.

"sorry that was the wrong answer, the corect answer was:"

could have "correct", and a capital letter for "Sorry"



Also, looking at the code, I don't think you use "question_array" or "answer_array". And I don't know what "utah2" means.

Sorry I'm not great at games but I like looking at code and interfaces.


Kids dad here.

Those arrays were for a past version. I nudged him towards randomly generated question/answers. That's currently dead code.

"utah2" -- haha, his variable names are sometimes not useful here. We visited Utah months before he wrote the game, so that inspired that variable name I guess! This version I wasn't nitpicking not he code as long as it worked. The bar higher for the next version.

.. and yes, spelling issues are top thing to fix for next version! At the moment, he can code better than he can spell.

Thanks for taking a peek under the hood :)


Haha love that :) I think I'm going to start naming my variables after my vacation destinations too to flex on my teammates ;) Keep up the great work though, I'm sending this to my 12 year old brother to get him motivated


"There are two hard problems in computer science: cache invalidation, naming things, and off-by-1 errors."




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: