mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-14 18:02:43 +01:00
DroidFish: Added evaluation to avoid walking into wrong corner in KRKB endings.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user