@@ -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; |