From 71f005f4e939d71d64f00c66748963f8895434d0 Mon Sep 17 00:00:00 2001 From: MichaƂ Klichowicz Date: Fri, 18 Sep 2026 10:12:56 +0200 Subject: Moving card count check to the reported non-fatal errors --- src/BoardLayout.cs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/BoardLayout.cs') diff --git a/src/BoardLayout.cs b/src/BoardLayout.cs index 74c9d0d..4a691de 100644 --- a/src/BoardLayout.cs +++ b/src/BoardLayout.cs @@ -59,7 +59,6 @@ namespace BCDD { throw new InvalidLayoutException(String.Format("Hand does not contain four suits: {0}", playerHands[playerIndex])); } - int playerCardCount = 0; for (int suitIndex = 0; suitIndex < cards.Length; suitIndex++) { List currentHand = new List(); @@ -68,15 +67,10 @@ namespace BCDD if (card.Length > 0) { currentHand.Add(card); - playerCardCount++; } } hand[(BCalcWrapper.DENOMINATIONS[3 - suitIndex]).ToString()] = currentHand; } - if (playerCardCount != 13) - { - throw new InvalidLayoutException(String.Format("Hand does not contain 13 cards: {0}", playerHands[playerIndex])); - } this.Hands[(handLetters[playerIndex]).ToString()] = hand; } } -- cgit v1.3.1