Added test results for SnakeBot.java

This commit is contained in:
Illia Soloviov 2024-01-07 19:52:20 +01:00
parent 2d6def3c29
commit 446094f6af

View File

@ -39,6 +39,7 @@ public class SnakeBot extends Bot{
* @TODO:
* Avoiding endless loops due to trying to collect two stones at once.
* Problem: stones located near to each other are ignored.
* Tested: 20 tries; avgScore = 25.45/32; minScore = 19; maxScore = 29; trapped 1/20.
*/
if(countUncollectedStones(view) > 1) ignoreStones = true;
if(countCollectedStones(view) <= 2 && countUncollectedStones(view) <= 1) ignoreStones = false;