Skip to content
Permalink
Browse files

Tweak end game evaluator

  • Loading branch information
joesweeney committed Apr 30, 2017
1 parent ba5420d commit eee037ff22124e176302066240b3ad77feb5d306
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/EndEvaluator.java
@@ -11,10 +11,13 @@ public double evaluate(CheckersGameState s, int player) {

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);

0 comments on commit eee037f

Please sign in to comment.
You can’t perform that action at this time.