Skip to content

Commit

Permalink
chore: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
djpiper28 committed Aug 29, 2024
1 parent bfe5691 commit b3d600f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/gameLogic/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func (g *Game) moveToCzarJudgingPhase() (CzarJudingPhaseInfo, error) {
err := g.newCards()
if err != nil {
logger.Logger.Warn("Cannot give players new cards, after judging the game will end.")
return CzarJudingPhaseInfo{}, nil
return CzarJudingPhaseInfo{}, nil
}

// Copy out players hands
Expand Down Expand Up @@ -719,7 +719,9 @@ func (g *Game) CzarSelectCards(pid uuid.UUID, cards []int) (CzarSelectCardResult
}

if len(cards) != int(g.CurrentBlackCard.CardsToPlay) {
return CzarSelectCardResult{}, errors.New(fmt.Sprintf("Expected %d cards, found %d", g.CurrentBlackCard.CardsToPlay, len(cards)))
return CzarSelectCardResult{}, errors.New(fmt.Sprintf("Expected %d cards, found %d",
g.CurrentBlackCard.CardsToPlay,
len(cards)))
}

// Find the player who won
Expand Down

0 comments on commit b3d600f

Please sign in to comment.