|
|
|
|
@ -642,6 +642,8 @@ open class HandHistory : RealmObject(), Deletable, RowRepresentable, Filterable, |
|
|
|
|
|
|
|
|
|
pots.forEach { pot -> |
|
|
|
|
|
|
|
|
|
if (pot.positions.size > 1) { // we only consider contested pots |
|
|
|
|
|
|
|
|
|
val winningPositions = compareHands(pot.positions.toList()) |
|
|
|
|
|
|
|
|
|
// Distributes the pot for each winners |
|
|
|
|
@ -657,6 +659,7 @@ open class HandHistory : RealmObject(), Deletable, RowRepresentable, Filterable, |
|
|
|
|
wp.amount += share |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return wonPots.values |
|
|
|
|
|