var clickBestThing = function(){
var things = [...document.querySelectorAll("#manufacture__container > div")].map(function(e){
var res = {e};
[...e.getElementsByTagName("span")].map(function(s){
res[s.id] = +s.innerText.replace(/[^0-9]/g, '')
})
if(e.id === "item__spudGun" || e.id === "item__potatoLauncher") res.powerGain *= 1000;
res.score = res.cost / res.powerGain;
// res.score = res.cost / res.spudGain;
res.name = e.getElementsByClassName("manufacture__name")[0].innerText;
return res
}).sort(function(a,b){return a.score - b.score})
window.things = things;
var bestThing = things[0];
if(!things[things.length-1].score) bestThing = things[things.length-1]
console.info("clicking " + bestThing.name)
things[0].e.click();
}
var timer = setInterval(clickBestThing, 5000)
Of course it's much easier to `power = 999...`, but this feels more like automation and less like cheating.cA/p + cB/(p+pA) < cB/p + cA/(p+pA)
Solving this, we get cA * (p+pA)/pA < cB * (p+pB)/pB Since the left side is all in A, if we pick the item minimizing that quantity, it is faster to buy it before any other item. So changing res.score to be res.cost * (cur_power + res.powerGain)/res.powerGain is going to be a bit faster
https://gist.github.com/thexa4/2da63028a1d8007dedbd0ba9432c8...
...I'd complain but I'm too busy micromanaging space potatoes.
The level of polish is what kept me clicking 285 times just to 'start' the game. Very cool.
Kudos to the developers. Really lovely game, intuitive and entertaining, well-built.
var ki = setInterval(function() { kinetigenClick(); kinetigenRelease(); }, 10);
Then later on at a certain point in the game, I had to stop it:
clearInterval(ki);
You put a clicker in front of me and baam. Lost a hour.
Good stuff, thanks for sharing!
power = n; (where n is whatever you need)
sol.mass = 3e7;
Cool game!
Fun game concept!
Also, thanks for ruining my dissertation...