Deck of Cards,13x4 + 2 optional jokers.
$ dotnet add package Blazed.CardDeckAdd the service in your Program.cs
builder.Services.AddCardDeckServe(withJoker: true, lifetime: ServiceLifetime.Scoped);
In your Blazor Component you need to have:
@using Blazed.CardDeck;
@inject CardDeck Deck
Use the List Object: Cards. This IE: Deck.Cards Sample:
@foreach(var ADeckCard in Deck.Cards)
{
<PlayingCard TheCard="ADeckCard"></PlayingCard>
}
You can also skip the blazor component and get svg pics of cards instead. Instance the service on any Controller, or most preferably for a multi player game, a WebSocket Hub or for the best option a SignalR Hub.