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