-
Notifications
You must be signed in to change notification settings - Fork 124
improving the standard settings (rapid growth of snake) #290
Comments
@Seple Please test the current develop bot head to head with another develop bot with your changes for at least 30 games and then post back results - also in the wiki how to test |
@Seple what do you mean higher score? Each run I did was so different from expectations :( I tried to read your table.
But there is no size of snake with that. How did you test these? |
The lowest scores go up (rapid growth of snake) = average results to the top
above (more) 10,000 points returns (switch) standard setings
foodAccelSize + foodRoundSize ---> They should be scaled to the size of the snake (setting grow along with the growth of snake) Very please create a code for testing |
The length seems to be Math.floor(15 * (fpsls[snake.sct] + snake.fam / fmlts[snake.sct] - 1) - 5) / 1 of which none is documented. I came up with code below added to #275 / #292 ... I left out _ radiusMult_ as that is a constant so you need to set that through the UI yourself. getPriority: function() {
// Lower limit of snakeLength criteria used below
var lengthGroup;
var snakeLength = 0;
snakeLength = Math.floor(15 * (fpsls[snake.sct] + snake.fam / fmlts[snake.sct] - 1) - 5) / 1;
if (snakeLength == 0) {
return 0;
}
var opt = bot.opt;
if (snakeLength < 5000) {
lengthGroup = 0;
opt.foodAccelSize = 20;
opt.foodRoundSize = 1;
} else if ( snakeLength < 10000) {
lengthGroup = 5000;
opt.foodAccelSize = 40;
opt.foodRoundSize = 5;
} else {
lengthGroup = 10000;
opt.foodAccelSize = 60;
opt.foodRoundSize = 10;
}
if (lengthGroup != this.lastLengthGroup) {
lengthGroup != this.lastLengthGroup;
// No need to update UI yet.
// userInterface.onPrefChange();
}
return 0;
}, |
Make sure to enable the task SnakeParamsBySize |
Perfect repaired fast growth of a snake! Thank You very much! ❤️ |
I'm waiting for your test report :p |
Tempting opportunity (possiblity) to merge option: "HuntForPrey" With the condition: |
My test after 5 hours, unfortunately I do not have possibilities more time to test :/ http://s33.postimg.org/s24e0j0un/test.jpg My test after 8 hours (another computer - laptop). Comparing the results above is visible improvement code: var customBotOptions = {
targetFps: 40,
radiusMult: 12,
... }; Code f3e0600 0 - 5,000 points 5,000 - 10,000 points 10,000 - more points Better :) |
@Seple please report back in #275 or PR #292 with your preferred settings. And then no code dumps aka find the differences :-( I annotated your code in #290 (comment) with ```javascript so it color renders |
Much better ... committed |
Shall we close this as PR #292 hazz da code |
Possible merge the option: "HuntForPrey" ? When time the function will be added in the standard code : develop or master? |
What do you mean by merge the option?
First step PR must be voted for. Then it ends in develop and next release into master. Unfortunately the performance metrics do not help. |
Option to merge into one HuntForPrey ---> 1,000 points.
@ermiyaeskandary This idea ( Better Settings and Defaults) can be added separately? |
Again thank you very much and sorry for the problem ;) |
:) |
Fixed |
Please if this option is possible to add settings standard ?
foodAccelSize ---> They should be scaled to the size of the snake
Example:
radiusMult 12, + foodAccelSize: 20, + foodRoundSize : 1, ---> to 5,000 points
radiusMult 12, + foodAccelSize: 40, + foodRoundSize : 1, ---> to 10,000 points
radiusMult 12, + foodAccelSize: 60, + foodRoundSize: 10, ---> to more 10,000 points
Please test settings
https://files.gitter.im/ErmiyaEskandary/Slither.io-bot/K8Ri/2h.jpg <--- after 2 hours
![](https://camo.githubusercontent.com/db1ed95e58982ca66bd315a0335936629adec5687e35743162a279ceacbfa5cf/68747470733a2f2f66696c65732e6769747465722e696d2f45726d69796145736b616e646172792f536c69746865722e696f2d626f742f4b3852692f32682e6a7067)
https://files.gitter.im/ErmiyaEskandary/Slither.io-bot/TQth/3.5h.jpg <--- after 3,5 hours
![](https://camo.githubusercontent.com/f994d2eaaf73812afe7f2443c63d55940785daff26d40fa98804cb7b8d628fc4/68747470733a2f2f66696c65732e6769747465722e696d2f45726d69796145736b616e646172792f536c69746865722e696f2d626f742f545174682f332e35682e6a7067)
My Bot has better results 👍
Have a nice day!
The text was updated successfully, but these errors were encountered: