https://github.com/thgh/integersnake-ai
Algorithms playing integersnake.com
https://github.com/thgh/integersnake-ai
Last synced: about 1 year ago
JSON representation
Algorithms playing integersnake.com
- Host: GitHub
- URL: https://github.com/thgh/integersnake-ai
- Owner: thgh
- Created: 2016-12-18T14:21:03.000Z (over 9 years ago)
- Default Branch: gh-pages
- Last Pushed: 2016-12-18T16:33:16.000Z (over 9 years ago)
- Last Synced: 2025-02-05T17:28:21.844Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://thgh.github.io/integersnake-ai/
- Size: 219 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Integer Snake AI
The goal is write a function that takes a grid as input and returns the most strategic snake as output.
### [Demo](https://thgh.github.io/integersnake-ai/)
## Show the next numbers
Copy the snippet below into the address bar of integersnake.com to see which numbers are coming up next.
```
javascript:!function(){function n(n){var o=[];s=seed;for(var a=0;n>a;a++){s++;var e=1e4*Math.sin(s);e-=Math.floor(e),o.push(Math.ceil(3*e))}return o}function o(){$("#random").html(n(5).join(" "))}$("#game_canvas").before(''),$("body").on("touchend",o),$("body").on("mouseup",o);o()}();
```
It should look like this:

Yes, this was used to get the 10k+ scores