Thread with 4 posts
jump to expanded postMy kids and I just made a computer #game! It'll think of a number between 1 and 5, and then let the player try to guess it, until they guess right. We played a few rounds.
We counted, it was 18 lines of (#javascript) code. Then we looked at some other games and programs with a lot more lines of code and thought about how much one can learn to get to that many LoC :)
(FWIW at my company I think we're at like 360k or so.)
So...what program do we build next?
@zlatko I remember a game from primary school where a block with a math expression (eg. 13*5) would fall down like a Tetris block, and one would have to position it over the correct result (out of four or five) at the bottom. It was all text so it seems relatively easy to build.
@merlinrebrovic dude, moving text! I think we need to do a snake first, but this is probably somewhere in the future!
@zlatko IDK, the snake game seems more complicated :D