Skip Navigation
An idle game in 200 lines of 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.

  • "Goldmine" - an idle game in 200 lines of pure JavaScript
  • 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...

  • 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/)MO
    monica_b1998 @programming.dev
    Posts 3
    Comments 8