Skip to content

Instantly share code, notes, and snippets.

@jamsterwes
Created April 7, 2017 18:58
Show Gist options
  • Save jamsterwes/89c9191fa9ef8b3f7f165b7cf897d4ba to your computer and use it in GitHub Desktop.
Save jamsterwes/89c9191fa9ef8b3f7f165b7cf897d4ba to your computer and use it in GitHub Desktop.
Snake hack - click play on coolmath's HTML5 Snake, and before you make a first move, run this in the JS console, you will not be disappointed
for (var i = 0; i < 2000; i++) {mySnakeBoard.grid[Math.floor(Math.random() * 28)][Math.floor(Math.random() * 39)] = -1;}
@andrewpisula
Copy link

Works!

@sebm8
Copy link

sebm8 commented May 21, 2018

VM343:1 Uncaught ReferenceError: mySnakeBoard is not defined
at :1:33

@JaredStanbrook
Copy link

In Console Tab, Change "top" to "html5game(play)" in a drop down then put in the code press enter and play the game 💯

@OHMAJOR
Copy link

OHMAJOR commented Dec 21, 2018

doesn't work for me please help

@jamsterwes
Copy link
Author

Sadly, cool math updated the game and there seems to be no way to do any tricks of this kind to it anymore :(

@lukmyer
Copy link

lukmyer commented Mar 12, 2019

Im working on a updated version of this if you have any advice my discord is bahboosha#6969

@tyler883
Copy link

3

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