2 ms·
I wrote a BASIC interpreter in golang a few years back, and somehow the child really fell in love with the classic "guess the number" game: https://github.com/
by stevekemp 2y ago
I wrote a BASIC interpreter in golang a few years back, and somehow the child really fell in love with the classic "guess the number" game:
https://github.com/skx/gobasic/blob/master/examples/55-game.bas https://github.com/skx/gobasic/blob/master/examples/55-game....
I taught him how to divide the range in half to cut down on the number of guesses, and once he got the hang of that he was hooked.
We played a couple of simple text-based games together after that, but most of the classics were too hard, too long, and required too much typing for him. So the game I made was deliberately simple.
Even so the first time he played he had no idea that a rug could cover a trapdoor. That level of hiding things was too much for him to leap to himself, I had to direct him.
These kinda shared activities don't replace his love of Minecraft, or Super Mario Bros (original NES version!), but I'm still glad we can do them together.