diff options
-rw-r--r-- | sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/score/Score.kt | 1 | ||||
-rw-r--r-- | sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/boards/Board.kt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/score/Score.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/score/Score.kt index 10fe02e1..3f9dbe41 100644 --- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/score/Score.kt +++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/score/Score.kt @@ -7,6 +7,7 @@ class ScoreBoard(val scores: Collection<PlayerScore>) @Serializable data class PlayerScore( + val playerIndex: Int, val boardGold: Int, val pointsByCategory: Map<ScoreCategory, Int> ) : Comparable<PlayerScore> { diff --git a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/boards/Board.kt b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/boards/Board.kt index 8f683bd7..4c67be82 100644 --- a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/boards/Board.kt +++ b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/boards/Board.kt @@ -73,6 +73,7 @@ internal class Board(val wonder: Wonder, val playerIndex: Int, settings: Setting } fun computeScore(player: Player): PlayerScore = PlayerScore( + playerIndex = playerIndex, boardGold = gold, pointsByCategory = mapOf( ScoreCategory.CIVIL to computePointsForCards(player, Color.BLUE), |