Hacker News new | past | comments | ask | show | jobs | submit login

I ran this in console. just to automate gathering wood and trap checking, since forgetting to switch between panels is easy to do:

function pushButtons(){if(!$("#gatherButton,#trapsButton").hasClass('disabled')){$("#gatherButton,#trapsButton").trigger('click');}}setInterval(pushButtons, 1000);




$('#roomPanel').width(350);

See inside and outside at the same time


Here's a way to check traps, gather wood, and stoke the fire separately:

var stoke = function(){if(!$('#stokeButton').hasClass('disabled')){$('#stokeButton').trigger('click')}}

var check = function(){if(!$("#trapsButton").hasClass('disabled')){$("#trapsButton").trigger('click')}}

var gather = function(){if(!$("#gatherButton").hasClass('disabled')){$("#gatherButton").trigger('click')}}

g = setInterval(gather, 1000) c = setInterval(check, 1000) s = setInterval(stoke, 60000)


Was getting undefined errors with that..

This works:

function pushGather(){if(!$("#gatherButton").hasClass('disabled')){$("#gatherButton").trigger('click');}}setInterval(pushGather, 1000);

function pushCheck(){if(!$("#trapsButton").hasClass('disabled')){$("#trapsButton").trigger('click');}}setInterval(pushCheck, 1000);

function pushStoke(){if(!$("#stokeButton").hasClass('disabled')){$("#stokeButton").trigger('click');}}setInterval(pushStoke, 60000);


Here's a way to get the ship, max out the hull, launch and win:

    Ship.init();State.ship = {hull:10000, thrusters:10000};Ship.liftOff();
Dodging optional.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: