Innobate.CardDeck.Cards 0.0.1-alpha3

This is a prerelease version of Innobate.CardDeck.Cards.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Innobate.CardDeck.Cards --version 0.0.1-alpha3                
NuGet\Install-Package Innobate.CardDeck.Cards -Version 0.0.1-alpha3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Innobate.CardDeck.Cards" Version="0.0.1-alpha3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Innobate.CardDeck.Cards --version 0.0.1-alpha3                
#r "nuget: Innobate.CardDeck.Cards, 0.0.1-alpha3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Innobate.CardDeck.Cards as a Cake Addin
#addin nuget:?package=Innobate.CardDeck.Cards&version=0.0.1-alpha3&prerelease

// Install Innobate.CardDeck.Cards as a Cake Tool
#tool nuget:?package=Innobate.CardDeck.Cards&version=0.0.1-alpha3&prerelease                

Spanish-Suited Playing Cards Spanish-Cards

A standard Spanish-suited pack of playing cards consists of 48 cards, divided into four suits:

  • Espadas (swords)
  • Bastos (clubs)
  • Copas (cups)
  • Oros (coins)

Each suit contains 12 cards: ace, king, knight (caballero), jack (sota), and 2-7.

Court Card Ranking

The court cards are ranked as follows:

  1. King (rey)
  2. Knight (caballero)
  3. Jack (sota)

The other cards are ranked in numerical order, with the ace being the highest card.

Usage

Spanish-suited playing cards are commonly used in the following regions:

  • Spain
  • Portugal
  • Many parts of Latin America
  • The Philippines

They are also used in some parts of France and Italy.

Note

Some Spanish-suited packs may include two jokers, which are not assigned to any suit.

Example

Here is an example of a standard Spanish-suited pack of playing cards:

Suit Ace King Knight Jack 2 3 4 5 6 7
Espadas A♠ K♠ Q♠ J♠ 2♠ 3♠ 4♠ 5♠ 6♠ 7♠
Bastos A♣ K♣ Q♣ J♣ 2♣ 3♣ 4♣ 5♣ 6♣ 7♣
Copas A♥ K♥ Q♥ J♥ 2♥ 3♥ 4♥ 5♥ 6♥ 7♥
Oros A♦ K♦ Q♦ J♦ 2♦ 3♦ 4♦ 5♦ 6♦ 7♦

Additional Information

  • Spanish Name: Spanish cards are called naipes españoles in Spanish. They are also sometimes referred to as baraja española (Spanish deck) or cartas de baraja (playing cards).

  • Differences from French Cards: Spanish cards are different from French-suited playing cards in a few ways. First, they have different suits: espadas (swords), bastos (clubs), copas (cups), and oros (coins). Second, they have different court cards: rey (king), caballo (knight), and sota (jack). Third, they have a different ranking system: the ace is the highest card in each suit, followed by the rey, caballo, and sota.

  • Usage in Card Games: Spanish cards are used in a variety of card games, including chinchón, brisca, and mus. They are also used in fortune telling and other divination practices.

Names in English and Spanish

Here is a table of the different names for Spanish cards in English and Spanish:

English Spanish
Ace As
King Rey
Knight Caballo
Jack Sota
Clubs Bastos
Cups Copas
Swords Espadas
Coins Oros

CardDeck.Cards.Spanish

The CardDeck.Cards.Spanish library is a component of the CardDeck library that allows developers to create custom cards for use with the CardDeck library's Deck class. These custom cards are designed to enable the creation of customized card decks tailored for specific card games or applications. While the provided code is specific to Spanish-suited playing cards, developers can adapt it to create cards for other card types.

Key Features of the CardDeck.Cards.Spanish Library:

  • Custom Card Implementation: The library provides a simple and extensible implementation for creating custom Spanish-suited playing cards. Developers can customize the suit and face values of the cards to match their specific requirements.

  • Unicode Symbols for Suits: The library includes Unicode symbols for representing the four Spanish suits: Espadas (Swords), Bastos (Clubs), Copas (Cups), and Oros (Coins). These symbols can be used to display the suits of the cards.

  • Face Values: The library defines face values for Spanish-suited cards, including Ace, King, Knight, Jack, and numeric values from 2 to 7.

  • Card Representation: Each card is represented by a combination of its suit and face value, and a short code is generated based on these values. For example, "3♠" represents the 3 of Espadas (Swords).

  • Joker Card Support: The library includes support for Joker cards with customizable values.

  • Full Card Values: In addition to standard face values, the library also provides full card values that include Eight and Nine.

Developers can use this library to create their own custom card types for various card games and applications. The provided code serves as a starting point for implementing Spanish-suited cards, and similar approaches can be applied to other types of playing cards.

The CardDeck.Cards.Spanish library can be used in conjunction with the CardDeck library to create and manage custom card decks for a wide range of card-based applications.

Attribuition

<a href="https://www.flaticon.com/free-icons/spanish-deck" title="spanish-deck icons">Spanish-deck icons created by Freepik - Flaticon</a>

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Innobate.CardDeck.Cards:

Package Downloads
Innobate.CardDeck.Factories

CardDeck Factories: A library of versatile deck factory classes for creating and initializing card decks tailored to various card games. Includes factories for Bezique, Euchre, Standard Spanish, Pinochle, Piquet, and Full Spanish decks, providing developers with the tools to easily generate custom card decks for their applications and card games

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.11-alpha 191 11/16/2023
0.0.10-alpha 74 11/15/2023
0.0.9-alpha 76 11/13/2023
0.0.8-alpha 76 11/10/2023
0.0.7-alpha 75 11/7/2023
0.0.6-alpha 71 11/7/2023
0.0.1-alpha5 77 11/7/2023
0.0.1-alpha4 78 11/6/2023
0.0.1-alpha3 82 11/6/2023
0.0.1-alpha2 74 11/5/2023