From de6730858930eedd433b3c65241f7f25f30c6078 Mon Sep 17 00:00:00 2001 From: "jeremy.mouyon" Date: Fri, 17 May 2024 15:48:31 +0200 Subject: [PATCH] code smel --- Qwirkle/QwirkleClassLibrary/Game.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Qwirkle/QwirkleClassLibrary/Game.cs b/Qwirkle/QwirkleClassLibrary/Game.cs index facb61c..d86942a 100644 --- a/Qwirkle/QwirkleClassLibrary/Game.cs +++ b/Qwirkle/QwirkleClassLibrary/Game.cs @@ -466,11 +466,11 @@ namespace QwirkleClassLibrary public List CheckTilesBag() { - List PlayerTilesBagPos = new List(); + List PlayerTilesBagPos = []; if (bag.TilesBag.Count == 0) { - for (int i = 0; i < players.Count(); i++) + for (int i = 0; i < players.Count; i++) { if (players[i].Tiles.Count != 0) { @@ -485,11 +485,11 @@ namespace QwirkleClassLibrary public bool CheckBoardTile(List PlayerTilesBagPos) { - for(int i=0; i PlayerTilesBagPos = CheckTilesBag(); - if (PlayerTilesBagPos.Count() != 0) + if (PlayerTilesBagPos.Count != 0) { if (!CheckBoardTile(PlayerTilesBagPos)) {