diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-15 03:54:10 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-15 03:54:10 +0200 |
commit | 922faefc516126d8eae6c8ced960dfaa9ec2f25a (patch) | |
tree | 553a9e55e5b643021ba70f70213f81eeaed7b9d3 /sw-engine/src | |
parent | Make Lobby/player repository more thread safe (diff) | |
download | seven-wonders-922faefc516126d8eae6c8ced960dfaa9ec2f25a.tar.gz seven-wonders-922faefc516126d8eae6c8ced960dfaa9ec2f25a.tar.bz2 seven-wonders-922faefc516126d8eae6c8ced960dfaa9ec2f25a.zip |
Add player index in scoreboard
Diffstat (limited to 'sw-engine/src')
-rw-r--r-- | sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/boards/Board.kt | 1 |
1 files changed, 1 insertions, 0 deletions
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), |