Carubbi.Cards.WinForms
2.0.1
dotnet add package Carubbi.Cards.WinForms --version 2.0.1
NuGet\Install-Package Carubbi.Cards.WinForms -Version 2.0.1
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="Carubbi.Cards.WinForms" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Carubbi.Cards.WinForms" Version="2.0.1" />
<PackageReference Include="Carubbi.Cards.WinForms" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Carubbi.Cards.WinForms --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Carubbi.Cards.WinForms, 2.0.1"
#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.
#:package Carubbi.Cards.WinForms@2.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Carubbi.Cards.WinForms&version=2.0.1
#tool nuget:?package=Carubbi.Cards.WinForms&version=2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Carubbi.Cards
Framework to develop card games in .NET
The solution contains:
| Project | Description |
|---|---|
| Carubbi.Cards | Core framework: Card, CardSet, Deck, Suit (.NET 10) |
| Carubbi.Cards.WinForms | WinForms controls: CardBox, CardSetPanel + card image resources |
| Carubbi.BlackJack | Blackjack game logic over the core |
| Carubbi.BlackJack.UI | Blackjack UI (follows the project template standard) |
| Carubbi.SlotCard | Video poker machine logic |
| Carubbi.SlotCard.UI | Video poker machine UI |
| Carubbi.RobaMonte | "Roba Monte" deck-stealing game logic |
| Carubbi.RobaMonte.UI | "Roba Monte" UI (split from the former monolith) |
| Carubbi.Sabao | "Sabão" game (logic + UI) |
| CardGameProjectTemplate | Starter template for new games |
Test projects pair with their assembly: Carubbi.Cards.Tests, Carubbi.BlackJack.Tests, Carubbi.RobaMonte.Tests — all TUnit.
Requirements
- .NET 10 SDK (or newer)
Build and test
dotnet build Carubbi.Cards.slnx
dotnet run --project Carubbi.Cards.Tests
dotnet run --project Carubbi.BlackJack.Tests
dotnet run --project Carubbi.RobaMonte.Tests
CI runs build + all test suites on every push/PR (.github/workflows/ci.yml).
Quality scripts (PowerShell)
| Script | What it does |
|---|---|
scripts/run-coverage.ps1 |
Runs all *.Tests projects with coverage (MTP code coverage), one cobertura file per suite in TestResults/coverage/. -Report merges them into a single HTML report (ReportGenerator); -Open opens it. Pass -TestProjects <paths> to restrict. |
scripts/run-mutation-tests.ps1 |
Runs Stryker per logic assembly (Carubbi.Cards, Carubbi.BlackJack, Carubbi.RobaMonte) against its paired test project, using the MTP test runner. Installs dotnet-stryker on first use. Reports: TestResults/mutation/<Project>/. -Open opens the last report. |
Package versions are centralized in Directory.Packages.props (CPM); shared build settings in Directory.Build.props.
Core API notes
Decksupports an optional injectableRandom(new Deck(1, true, myRandom)) and a reproducible seeded shuffle viaShuffle(int seed);Deck.GameNumberidentifies the current game/shuffle.CardSet.Draw(index)removes and returns the card at an index (throws when out of range);GetTop/GetBottomreturnnullwhen empty.- Card face images live in
Carubbi.Cards.WinForms(CardImages.GetImage(card),ImageKeyonCard), keeping the core free of System.Drawing.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0-windows7.0
- Carubbi.Cards (>= 2.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.