Added the ability to choose your cardtype when playing a jack or the newly added joker
All checks were successful
Build Mau & Deploy Mau / build (push) Successful in 1m14s
Build Mau & Deploy Mau / deploy (push) Has been skipped

This commit is contained in:
DTieman
2024-04-19 22:10:21 +02:00
parent b3d8bbd50e
commit 56034b921f
6 changed files with 58 additions and 7 deletions

View File

@@ -9,8 +9,15 @@ public class Deck
{
foreach (CardType cardType in Enum.GetValues(typeof(CardType)))
{
if (cardType == CardType.JOKER)
{
UnusedDeck.Add(new Card(cardType, CardValue.RED));
UnusedDeck.Add(new Card(cardType, CardValue.BLACK));
continue;
}
foreach (CardValue cardValue in Enum.GetValues(typeof(CardValue)))
{
if (cardValue is CardValue.RED or CardValue.BLACK) continue;
UnusedDeck.Add(new Card(cardType, cardValue));
}
}