summaryrefslogtreecommitdiff
path: root/src/BoardLayout.cs
diff options
context:
space:
mode:
authorMichał Klichowicz <emkael@tlen.pl>2026-09-18 10:12:56 +0200
committerMichał Klichowicz <emkael@tlen.pl>2026-09-18 10:12:56 +0200
commit71f005f4e939d71d64f00c66748963f8895434d0 (patch)
tree4928f6a8812ef4ca7bf6d71c5c1c28a71cbcd7e5 /src/BoardLayout.cs
parent52f67e299ac5c850b286f7d512b3c536192e2219 (diff)
Moving card count check to the reported non-fatal errors
Diffstat (limited to 'src/BoardLayout.cs')
-rw-r--r--src/BoardLayout.cs6
1 files changed, 0 insertions, 6 deletions
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<String> currentHand = new List<String>();
@@ -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;
}
}