monica_b1998@programming.devOPtoProgramming@programming.dev•"Goldmine" - an idle game in 200 lines of pure JavaScript
3·
3 months agoI 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…
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.