ermiyaeskandary / Slither.io-bot

Just for fun and AI. Written in Javascript, this is a project which the aim is to make a computer play against humans inside a human-driven game, which is in this case Slither.io. The goal is simple - try and make the snake live and get as long as possible.
Mozilla Public License 2.0
195 stars 124 forks source link

snake variables and bot.isBotRunning #320

Open vasinwr opened 8 years ago

vasinwr commented 8 years ago

Is there an explanation somewhere on what each variable/field of the 'snake' object means?

screen shot 2016-07-12 at 11 32 23

Also, can I ask what 'bot.isBotRunning' does? It has always been 'true' for me throughout the game no matter what I do.

Thanks.

ChadSki commented 8 years ago

There was a valiant attempt at documentation here.

A good rule of thumb is that short, confusing names are built-in variables. Longer, easy-to-read names are ones we added. You can find bot.isBotRunning in our source code. I think it is false if you haven't started a game yet?