|
|
|
@ -28,6 +28,10 @@ class EvaluatorBridge { |
|
|
|
|
|
|
|
|
|
|
|
companion object { |
|
|
|
companion object { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
|
|
|
* Returns the best possible hand with the given [hand] and [board] |
|
|
|
|
|
|
|
* The result is in the form of an Int where having the lowest score is the best |
|
|
|
|
|
|
|
*/ |
|
|
|
fun playerHand(hand: List<Card>, board: List<Card>): Int { |
|
|
|
fun playerHand(hand: List<Card>, board: List<Card>): Int { |
|
|
|
|
|
|
|
|
|
|
|
val handCards = hand.mapNotNull { it.toEvaluatorCard() } |
|
|
|
val handCards = hand.mapNotNull { it.toEvaluatorCard() } |
|
|
|
|