Live data from Hacker News

Spaceplan

jhollands.co.uk

41–50 of 70 posts

Re: Spaceplan

#41
Reminds me of Larry Niven's Ringworld, or more specifically the Puppeteers and their planet-ships fleeing the galaxy.

Re: Spaceplan

#44

I love it! Found myself doing mental calculations for the most effective thing to buy next, and the next thing I knew I'd written a script to automatically buy it: 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 ==…

You can actually improve this a little with a better scoring function. Suppose we currently produce p, and A costs cA, for a power gain of pA. Likewise for B. Under the assumption that we will buy at least one more of A and B, we can look at whether A then B or B then A is faster, which is:

cA/p + cB/(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

Re: Spaceplan

#45

There goes my Saturday morning! Time to go stick my wrists in a bucket of ice. Kudos to the developers. Really lovely game, intuitive and entertaining, well-built.

Why is everyone clicking so much? Once you get your first few 'taters the extra gain from clicking is so small as to be pointless.

Re: Spaceplan

#46
post #4
post #3

Earlier quoted context omitted.

If you wanna avoid carpel tunnel, window.setInterval(kinetigenClick, 1) :P

I always feel cheat codes don't let me experience the game as its designer intended. But... always tempting. :)

Given how little obfuscation surrounds the click button, what if scripting it was what the developer intended?

Re: Spaceplan

#47

I love it! Found myself doing mental calculations for the most effective thing to buy next, and the next thing I knew I'd written a script to automatically buy it: 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 ==…

Slight modification so it doesn't automatically buys the item but just highlights the best one

https://gist.github.com/thexa4/2da63028a1d8007dedbd0ba9432c8...

Re: Spaceplan

#50

There goes my Saturday morning! Time to go stick my wrists in a bucket of ice. Kudos to the developers. Really lovely game, intuitive and entertaining, well-built.

Once I figured there would be lots of clicking, I went into the console and typed the following to automate the Kinetigen:

var ki = setInterval(function() { kinetigenClick(); kinetigenRelease(); }, 10);

Then later on at a certain point in the game, I had to stop it:

clearInterval(ki);

Post reply on HN