This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user