Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sas12028 committed Apr 30, 2017
2 parents 7b9a08a + eee037f commit 3dd9976
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 3dd9976

Please sign in to comment.