1
0

Add another AddressDecoder debug message

This commit is contained in:
Andrew Waterman 2017-09-19 17:46:04 -07:00
parent fb2ad11347
commit 72bd89a2af

View File

@ -123,6 +123,8 @@ object AddressDecoder
val candidates = bits.map { bit =>
val result = partitionPartitions(partitions, bit)
val score = bitScore(result)
if (debug)
println(" For bit %x, %s".format(bit, score.toString))
(score, bit, result)
}
val (bestScore, bestBit, bestPartitions) = candidates.min(Ordering.by[(Seq[Int], BigInt, Partitions), Iterable[Int]](_._1.toIterable))