Added test results for SnakeBot.java
This commit is contained in:
parent
2d6def3c29
commit
446094f6af
@ -39,6 +39,7 @@ public class SnakeBot extends Bot{
|
|||||||
* @TODO:
|
* @TODO:
|
||||||
* Avoiding endless loops due to trying to collect two stones at once.
|
* Avoiding endless loops due to trying to collect two stones at once.
|
||||||
* Problem: stones located near to each other are ignored.
|
* 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(countUncollectedStones(view) > 1) ignoreStones = true;
|
||||||
if(countCollectedStones(view) <= 2 && countUncollectedStones(view) <= 1) ignoreStones = false;
|
if(countCollectedStones(view) <= 2 && countUncollectedStones(view) <= 1) ignoreStones = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user