Fixed all tests

This commit is contained in:
Claude Brisson
2024-09-04 21:01:21 +02:00
parent 12ae4b0083
commit 95393e1aa9
2 changed files with 7 additions and 1 deletions

View File

@@ -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 {

View File

@@ -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