Welcome to MultiSnake V2
How to play
WASD or arrow keys to turn your snake. Don't run into the walls or other snakes. Eat the apples
Walls spawn in as more apples are eaten. When snakes have a head on collison, the longer snake wins. If they have the same length, they both die.
Chat now works! https://multisnake.188.8.131.52:3000 now redirects to https://mulitsnake.xyz without problem. The two highly talked about mods have finally been released!
FOG OF WAR Fog is generated as the game goes. You cannot see other people in it. Have fun!
A tiny little map.
Note: No obstacles spawn on mods.
New Update also includes: new stylesheet (don't worry, you still type in your username) SOON TO COME:
Bots - I will be making a website where you can make your own and submit them. That way, there will always be people to play against. You will know that they are a bot because their username will be [BOT].bot name. (Made by .username.), where people who submit a bot choose the name.
MORE THAT CAME OUT IN THE UPDATE:
This can be used to make a variety of projects. It is currently used in the site to tell how many people are online Currently its only endpoint it https://multisnake.xyz/api/v1/rooms that gives you a nice list of rooms, their names, the people in them, the quantity of snakes in them, the type of room, the last time it was visited, and more!
- online counter from 1.2.0 now works.
Images of styling:
- Push to cloudflare (more secure and faster for you)
- New loading screen + tips
- New homepage with fancy bouncing arrow animation
not from codepen
- Tips and tricks if ya click that down arrow!
- [mod] A new mod! TAG mode! Eat apples to become "it" and tag other players to kill them!w Get to ten to win! Wow!!
- Put a boot onto the repl- even faster now!
Just released another mod, super excited for that!! This one was suggested by @rickysong, and it is a lot of fun! It is the same concept as classic snake, but you have to freeze when the light turns red otherwise you'll die! Don't worry though- the light will turn yellow first so you know to smash the spacebar down and hold it there until it goes back to green. It's a lot of fun, go try it out.
Also, the readablity of the code has been greatly increased, and I have explained in comments throughout what each line does, so you can go and understand it.
The next update will be huge. I am rewriting all of multisnakes code to make it faster and more efficient, but it will take time, so be patient.
Want to sumbit your own AI? View our docs.
This is wild
Story by @sojs
Rejuvinating a dead project. Breathing life into what once was
Thousands of views a day on multisnake. I hop on to the servers at any time of day and hang out with 7 other snakes, have massive battles in fog of war, play some tag
A month later, I get blocked by all major internet safety providers, such as lightspeed user agent. No one can play this at school anymore, my views plummet. The project falls into disrepair. A year later, I decided this would have to change. Here is what I did.
I completely revamped the game interace
Made the code intuitive to read, with a fully class-based structure for incredible scalability.
Added full documentation to every class, descriptions of functions, parameters, etc. Commments on most of the files.
Switched from HTML table to HTML canvas. You can now get 60 FPS + a little bit of jitter based on your internet connection
Added a dev mode (put your username as "dev" to get it) for a more in depth view of how the game works under the hood
Updated the bots! If I do say so myself, they are almost impossible to detect from the players (except when they all move in sync)
Added intelligent spawning. This one is crazy. I generate a gradient map of all the danger spots on the map, then use this to determine the least dangerous spawn zone and the least dangerous spawn direction.
Updated to V2.1.0
Added classic map
- No walls spawn, get 10 apples to win
Added Small Map
- This was easy as I just had to change the "size" parameter
- Added some query strings so that you could change room type
- Updated to way the board was drawn to display different map sizes
Added Login/Signup system
- connect to AWS dynamoDB to create account
- Some express session to manage them
- added the ability to click on logged in users from the leader board to view their stats
- emails are private dont worry (I just need to validate them for chat- this is powerd by amazon SES)
Added fun API Token generation
- This is to prevent bots from connecting and impersonating other player
- Here how it works
- A user connect, server sends request to reCaptcha
- If the user is judged to not be a bot, an API key is generated and sent back to the client
- The client then sends the API key along with their JOIN_REQUEST
- The server checks to see if the key is valid, then assigns it their snakes UID
- Whenever they change direction, they also send their API key, which is checked against their UID
More on bots
Support for custom bots will be rolling out soon, once I write some tutorials on how to connect and make them, as well come up with a protocol for them to get API keys that dont expire (this is already in the code, I just have to figure out how to assign them to people on request)
Directional queue now actually works, and you can hit down and up at the same time without killing yourself.