Skip to content

Commit

Permalink
doc(score): add score to partialScoreWithVictoryPoints
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-borriello00 committed Oct 10, 2023
1 parent dca533f commit 947fb60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/scala/scatan/model/game/ops/ScoreOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ object ScoreOps:
)
)

/** Computes the partial scores of each player, taking into account the development cards they have assigned. A
* victory point card is worth 1 point.
*
* @return
* a Scores object containing the partial scores of each player.
*/
private def partialScoresWithVictoryPointCards: Scores =
val playersWithVictoryPointCards =
state.developmentCards.filter(_._2.exists(_.developmentType == DevelopmentType.VictoryPoint)).map(_._1)
Expand Down

0 comments on commit 947fb60

Please sign in to comment.