Fix score message
This commit is contained in:
parent
6903dad58c
commit
5286caed98
1 changed files with 2 additions and 2 deletions
4
game.go
4
game.go
|
@ -558,9 +558,9 @@ func (g *Game) printScoring() {
|
|||
cribscore, cribscoreresults := cribbage.Score(cribbage.ShowCrib, g.Crib, g.Starter)
|
||||
|
||||
if g.Dealer == player {
|
||||
gameprinted = append(gameprinted, fmt.Sprintf("Your hands scored %d (%d hand, %d crib) - Your opponent's hand scored %d", playerscore, cribscore, opponentscore))
|
||||
gameprinted = append(gameprinted, fmt.Sprintf("Your hands scored %d (%d hand, %d crib) - Your opponent's hand scored %d", playerscore+cribscore, playerscore, cribscore, opponentscore))
|
||||
} else {
|
||||
gameprinted = append(gameprinted, fmt.Sprintf("Your hand scored %d - Your opponent's hands scored %d (%d hand, %d crib)", playerscore, opponentscore, cribscore))
|
||||
gameprinted = append(gameprinted, fmt.Sprintf("Your hand scored %d - Your opponent's hands scored %d (%d hand, %d crib)", playerscore, opponentscore+cribscore, opponentscore, cribscore))
|
||||
}
|
||||
|
||||
gameprinted = append(gameprinted, "Starter "+g.Starter.String())
|
||||
|
|
Loading…
Reference in a new issue