Reset test changes 🤦🏻‍♂️
Some checks failed
Build and Test (KnockOutWhist) TeamCity build failed

This commit is contained in:
2024-11-03 20:10:31 +01:00
parent bc2b745b3b
commit 71ded682bb
2 changed files with 3 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ case class Match(totalplayers: List[Player], private[rounds] var number_of_cards
private[rounds] val roundlist: ListBuffer[Round] = ListBuffer[Round]()
private var current_round: Option[Round] = None
private[rounds] var dogLife = true
private[rounds] var dogLife = false
def create_round(): Round = {
val remainingPlayer = roundlist.isEmpty ? totalplayers |: roundlist.last.remainingPlayers()

View File

@@ -44,10 +44,9 @@ case class Round private(trumpSuit: Suit, matchImpl: Match, private[rounds] val
.filter((p, i) => i == tricksMapped.values.max)
.keys
/*var playersOut = firstRound
var playersOut = firstRound
? List()
|: players_in.filter(!tricksMapped.contains(_))*/
var playersOut = players_in.filter(!tricksMapped.contains(_))
|: players_in.filter(!tricksMapped.contains(_))
if(playersOut.nonEmpty && !matchImpl.dogLife) {
matchImpl.dogLife = true