MHN

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

1251 points by veesahni·726 days ago·armaansahni.com·Show in HN

My 9 year old son has been learning to code. He learned HTML & CSS over the last year or two.

Recently, we had a breakthrough where he learned how to leverage Google Gemini as a learning tool (not to write code for him, but as a better search and as a coding teacher). This leveled him up big time and he decided to make his own game.

Game link here: https://www.armaansahni.com/game/

He's coded all the HTML, CSS & JS by hand in VSCode. He's made the animated graphics on his own using a web based sprite editor called Piskel.

For the game, I provided hints along the way and Gemini has helped him with syntax. View source to see the code. He's excited to share with the community.

He also wrote a blog post about how he made this game: https://www.armaansahni.com/how-i-coded-a-game-using-ai/ (he independently figured out how to leverage Gemini effectively and writes about it here).

Regarding the blog post - We had a discussion about who the target audience is (ie not 9 year olds!), what they would be interested in learning about and the general outline. He then dictated his words into the computer (which gets around spelling issues), and he went through multiple rounds of feedback from his parents (improving clarity, punctuation, etc). In other words, its his words & thoughts but he had help along the way!

NOTE: both parents are programmers, who provided valuable guidance through his coding journey.

Add a comment on Hacker News →
5 of 480 comments
  1. That is awesome. Keep up the good work little buddy. Love the retro feel of the wizard. :)

  2. Looks amazing! Would love to know when the weapon is charged and how much each shot takes.

    Btw, this game reminds me of BBS door games. Great stuff.

  3. This will be featured in my cross-discipline AI meeting this week. The blog article your son wrote was excellent - I will be pulling a few quotes.

    I found it insightful that he used the microphone to move faster, and that he couldn’t always trust AI, because it can be just as confidently wrong as any human.

    Both of you, keep up the good work!

  4. Fun game! Good job Armaan!

  5. All my feedback has been covered by others, so just +1 on “this is awesome, he (and you) should be proud!” Looking forward to seeing his internship projects in a decade or so.