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" />
                    
Directory.Packages.props
<PackageReference Include="Carubbi.Cards.WinForms" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Carubbi.Cards.WinForms&version=2.0.1
                    
Install as a Cake Tool

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

  • Deck supports an optional injectable Random (new Deck(1, true, myRandom)) and a reproducible seeded shuffle via Shuffle(int seed); Deck.GameNumber identifies the current game/shuffle.
  • CardSet.Draw(index) removes and returns the card at an index (throws when out of range); GetTop/GetBottom return null when empty.
  • Card face images live in Carubbi.Cards.WinForms (CardImages.GetImage(card), ImageKey on Card), keeping the core free of System.Drawing.
Product 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.1 84 8/24/2026
2.0.0 101 8/24/2026
1.2.1 756 11/14/2021
1.2.0 556 11/12/2021
1.1.0 1,067 11/4/2018
1.0.0 1,010 11/4/2018