YetAnotherSpieskowcy / Carcassonne-Engine

Other
0 stars 1 forks source link

SerializedGame scores don't include the scores after game's finalization #139

Closed Lenetis closed 1 week ago

Lenetis commented 2 weeks ago

After the game is finalized, the final score is returned in play turn response, but is not included in SerializedGame (it still has the previous scores, before finalization).

Relevant conversation: https://github.com/YetAnotherSpieskowcy/Carcassonne-Engine/pull/73#discussion_r1788936005

Jackenmen commented 2 weeks ago

That was an intentional decision - the engine has a separate field with final scores which is filled only on the final turn, while the serialized game contains the points after the turn but without including the calculation of end of game feature scores.