Skip to content

Instantly share code, notes, and snippets.

@jeanbza
Last active August 29, 2015 14:00
Show Gist options
  • Save jeanbza/11337433 to your computer and use it in GitHub Desktop.
Save jeanbza/11337433 to your computer and use it in GitHub Desktop.
Automate 'Will You Drown?'

Automating the small text game Will You Drown? (http://game.notch.net/drowning/#) is pretty easy:

window.setInterval(function(){
    for (i = 0; i < document.getElementsByTagName("a").length; i++) {
        document.getElementById(document.getElementsByTagName("a")[i].id).click();
    }
}, 500);

(open up the console while on the page, copy/paste the code snippet, and press enter)

It is kind of fitting though that this solution of always choosing the first option never lets you move past being a teenager; you just end up with a whole lot of broken hearts and 'stuff'. =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment