DroidFish: Added evaluation to avoid walking into wrong corner in KRKB endings.

This commit is contained in:
Peter Osterlund
2011-11-20 20:44:48 +00:00
parent 66aaca4aac
commit 0dcdaeaa74
4 changed files with 50 additions and 19 deletions

View File

@@ -371,8 +371,8 @@ public class Position {
}
public final int getKingSq(boolean whiteMove) {
return whiteMove ? wKingSq : bKingSq;
public final int getKingSq(boolean white) {
return white ? wKingSq : bKingSq;
}
/** Apply a move to the current position. */