Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tweak end game evaluator
  • Loading branch information
joesweeney committed Apr 30, 2017
1 parent ba5420d commit eee037f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/EndEvaluator.java
Expand Up @@ -11,10 +11,13 @@ public class EndEvaluator extends LearningEvaluator {

if(s.isTerminal()){
if(s.winner() == player){
return endVal; // what should this be?
return endVal;
}
else{
return -endVal; // assuming only positive evalutions
else if(s.winner() == 0){
return 0;
}
else {
return -endVal;
}
}
double[] params = s.getFeatures(player);
Expand Down

0 comments on commit eee037f

Please sign in to comment.