Fixed all tests
This commit is contained in:
@@ -50,7 +50,7 @@ open class HistoryHelper(
|
||||
history.flatten().filter { game ->
|
||||
game.handicap == 0
|
||||
}.filter { game ->
|
||||
game.white != ByePlayer.id // Remove games against byePlayer
|
||||
game.white != ByePlayer.id && game.black != ByePlayer.id // Remove games against byePlayer
|
||||
}.flatMap { game ->
|
||||
listOf(Pair(game.white, +1), Pair(game.black, -1))
|
||||
}.groupingBy {
|
||||
|
@@ -195,6 +195,12 @@ sealed class BaseSolver(
|
||||
val potentialHd: Int = max(hd1, hd2)
|
||||
|
||||
val score = if (potentialHd == 0) {
|
||||
if (round == 4 && (
|
||||
p1.fullName() == "Marechal Morgane" && p2.fullName() == "Goloubkov Alexandra"
|
||||
|| p2.fullName() == "Marechal Morgane" && p1.fullName() == "Goloubkov Alexandra"
|
||||
)) {
|
||||
println("@@@@ BP color balance")
|
||||
}
|
||||
val wb1: Int = p1.colorBalance
|
||||
val wb2: Int = p2.colorBalance
|
||||
if (wb1 * wb2 < 0) colorBalanceWeight
|
||||
|
Reference in New Issue
Block a user