From 922faefc516126d8eae6c8ced960dfaa9ec2f25a Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Fri, 15 May 2020 03:54:10 +0200 Subject: Add player index in scoreboard --- sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/boards/Board.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'sw-engine') 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), -- cgit