Live data from Hacker News

My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

armaansahni.com

41–50 of 493 posts

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#41
Great game. I'm very impressed that a 9 year old made this. A few suggestions:

1. Take input on the page rather than through a prompt. Current implementation breaks immersion.

2. I'd like there to be some time pressure. This can be done either by the opponent making their attacks on a timer (rather than taking turns the way it's done now) or by putting an explicit countdown for how long you have to solve the arithmetic problem. Maybe you can find some other creative way to put time pressure on the player.

3. I'd like a visual indication of when an attack has been charged.

4. Music/sound would be awesome.

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#42
post #26

Amazing. Younger people (and people new in any field) often think of intersting approaches without the blessing/curse of "best practices." The process for creating the game was very good and very logical way to learn a new field. I would recommend a couple of small things for the code. Variable names are usually ALL_CAPS if they never change (for instance const PI =3.142) and camelCaseForOtherVariables. snake_case_va…

Appreciate the feedback on the code style & variables. I raised this previously but perhaps external feedback will be what he needs to get him motivated to clean it up :)

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#44
post #19

Nicely done. How much did dad/mom help?

My guess would be quite a lot, since the artwork is not something a child would make despite it looking like its made for children.

I learned how to use Autodesk animator on DOS when I was 7 years old. Then again, I have been a geek all my life.

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#46
> But there was one downside to AI. AI was like a human which is why you could talk to it like a human. But because it was like a human, it could also be wrong like a human. So I had to make sure that it wasn't getting the answer wrong. For which I would sometimes use Google Search.

I really don't buy that this was written/created by an actual 9yr old.

But this might just be my unhealthy pessimism/skepticism when it comes to stuff on the internet.

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#47
post #19

Nicely done. How much did dad/mom help?

My guess would be quite a lot, since the artwork is not something a child would make despite it looking like its made for children.

We had art lessons in primary school back in prehistoric times when I was that age (sixty years ago). Plenty of us could create more complex artwork than that.
Post reply on HN