Browse Source

Added test results for SnakeBot.java

testing_N
Illia Soloviov 11 months ago
parent
commit
446094f6af
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/SnakeBot.java

+ 1
- 0
src/SnakeBot.java View File

* @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…
Cancel
Save