Skip to content
Browse files

Changes.

  • Loading branch information...
1 parent 6f51744 commit 0081b615d6e1baa15cf7f35d0addb6fcbe705490 @Bobcat committed Oct 13, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/Material.h
View
5 src/Material.h
@@ -163,6 +163,11 @@ class Material {
break;
}
}
+
+ if ((key1 & all_pawns) == 0 && (key2 & all_pawns) == 0) {
+ if (abs(balance()) < 500) score/=8;
+ }
+
flags |= recognized_draw ? RECOGNIZEDDRAW : 0;
return side1 != side_to_move ? -score : score;
}

0 comments on commit 0081b61

Please sign in to comment.
Something went wrong with that request. Please try again.