Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)MB
Posts
3
Comments
8
Joined
12 mo. ago

Programming @programming.dev

"Stick Champ" game in 90 lines of pure #JavaScript

  • you're technically correct, but the number of lines is mentioned to show the approximate complexity of the code. 200 lines means approx 200 instructions (I'm not counting empty lines, comments etc.) and that gives everyone a pretty good idea of how (un)complicated the game is.

  • I found the problem - there should be no "=" in this part of line 222: shaft.workers.length <= shaft.max_workers

    i'll update it on the website tomorrow. thanks for catching that! Somehow I hadn't tested clicking an invisible button...

  • Programming @programming.dev

    An idle game in 200 lines of JavaScript

    Programming @programming.dev

    "Goldmine" - an idle game in 200 lines of pure JavaScript