From 689aaa9e7d8985ff42fd9ef5b89db3d01f809a1b Mon Sep 17 00:00:00 2001 From: "jeremy.mouyon" Date: Mon, 6 May 2024 13:10:32 +0200 Subject: [PATCH] add scores in game --- Qwirkle/QwirkleClassLibrary/Game.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Qwirkle/QwirkleClassLibrary/Game.cs b/Qwirkle/QwirkleClassLibrary/Game.cs index 3783c16..f93bc10 100644 --- a/Qwirkle/QwirkleClassLibrary/Game.cs +++ b/Qwirkle/QwirkleClassLibrary/Game.cs @@ -18,6 +18,9 @@ namespace QwirkleClassLibrary public ReadOnlyCollection PlayerList => players.AsReadOnly(); private readonly List players = new(); + public ReadOnlyCollection ScoreList => scores.AsReadOnly(); + private readonly List scores = new(); + public Game() { bag = new TileBag(3); @@ -45,6 +48,7 @@ namespace QwirkleClassLibrary } players.Add(CreatePlayer(playerTag)); + scores.Add(new Score(players[players.Count])); return true; }