CardFramework.Maui 1.5.9

There is a newer version of this package available.
See the version list below for details.
dotnet add package CardFramework.Maui --version 1.5.9
                    
NuGet\Install-Package CardFramework.Maui -Version 1.5.9
                    
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="CardFramework.Maui" Version="1.5.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CardFramework.Maui" Version="1.5.9" />
                    
Directory.Packages.props
<PackageReference Include="CardFramework.Maui" />
                    
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 CardFramework.Maui --version 1.5.9
                    
#r "nuget: CardFramework.Maui, 1.5.9"
                    
#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 CardFramework.Maui@1.5.9
                    
#: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=CardFramework.Maui&version=1.5.9
                    
Install as a Cake Addin
#tool nuget:?package=CardFramework.Maui&version=1.5.9
                    
Install as a Cake Tool

🇮🇹 Made in Italy. Il secondo framework italiano ad avere la documentazione inline. Il primo framework indipendente ad usare il linq.

Napoli-Logo made in parco grifeo

Framework di numerone in maui per la realizzazione di giochi di carte equi. La codebase è in .net, con l'aggiunta di un resourcedictionary da passare. Il resource dictionary deve includere 4 campi: bastoni, coppe, spade e denari da tradurre dall'italiano nella lingua desiderata, i 4 semi dei mazzi di carte italiane, o eventualmente francesi. Il codice di apertura deve essere:

e = new ElaboratoreCarteBriscola(briscolaDaPunti, 0, 39, 40);
m = new Mazzo(e);
Carta.Inizializza(numerocarte,new CartaHelperBriscola(e.GetCartaBriscola()), "bastoni", "coppe", "denari", "spade");
g = new Giocatore(new GiocatoreHelperUtente(), nomegiocatore, dimensionemano);
switch (indicatore di livello)
{
		case 1: helper = new GiocatoreHelperCpu0(e.CartaBriscola); break;
		xase 2: helper = new GiocatoreHelperCpu1(e.CartaBriscola); break;
		default: helper = new GiocatoreHelperCpu2(e.CartaBriscola); break;
}
cpu = new Giocatore(helper, nomegiocatore, dimensionemano);
briscola = Carta.GetCarta(ElaboratoreCarteBriscola.GetCartaBriscola());
for (UInt16 i = 0; i < dimensionemano; i++)
{
		g.AddCarta(m);
		cpu.AddCarta(m);
}

una volta fatto questo, in carta si avrà un vettore di numerocarte elementi, in g e cpu si avrà un vettore di tre dimensionemanoelementi corrispondenti alle prime 2*dimensionemano carte del mazzo, che saranno riempite con addcarta. Quando addcarta restituisce un IndexOutOfRangeException exception si avrà la fine del mazzo.

Se avete un gioco di carte sul piatto, il modo di agire dei giocatori professionisti è quello di crearsi mentalmente il grafo di presa. Mi spiego: per la scopa in mano ho un 8, è prendibile tramite 7+1 e 6+2, entrambi vanno bene. Vanno messi in un grafo e va così scomposto l'8, per poi prendere sulla base del piatto quello che consuma il maggior numero di carte del piatto stesso. Quindi se ho 8 e 10 e posso prendere più carte che con l'8 invece che col 10, va giocato l'8.

Al momento copre la briscola ed il poker, col poker che si fissa sul seme "primo di mano".

Siete liberi di espanderlo con i grafi di presa.

Usa il linq sugli array, ed è il primo assembly indipendente a farlo, su android pare funzionare correttamemnte, su windows no, per via dell'ottimizzazione del framework.

Come ottenere

https://www.nuget.org/packages/CardFramework.maui

Donazioni

http://numerone.altervista.org/donazioni.php

Product Compatible and additional computed target framework versions.
.NET net9.0-android35.0 is compatible.  net9.0-ios18.0 is compatible.  net9.0-maccatalyst18.0 is compatible.  net9.0-windows10.0.26100 is compatible.  net10.0-android was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-windows was computed. 
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
1.5.12 101 7/17/2025
1.5.11 103 7/17/2025
1.5.10 128 7/10/2025
1.5.9 288 6/11/2025
1.5.8 234 5/14/2025
1.5.7 177 4/18/2025
1.5.6 203 4/17/2025
1.5.5 163 4/8/2025
1.5.4 167 4/8/2025
1.5.3 169 4/7/2025
1.5.2 250 4/7/2025 1.5.2 is deprecated because it has critical bugs.
1.5.1 253 4/7/2025 1.5.1 is deprecated because it has critical bugs.
1.5.0 256 4/7/2025 1.5.0 is deprecated because it has critical bugs.
1.4.9 143 3/16/2025
1.4.8 125 2/12/2025
1.4.7 105 1/15/2025
1.4.6 82 1/11/2025
1.4.5 127 1/5/2025
1.4.4 140 1/5/2025
1.4.3 117 1/5/2025
1.4.2 115 12/4/2024
1.4.1 114 11/26/2024
1.4.0 117 11/12/2024
1.3.7 120 10/8/2024
1.3.6 115 10/3/2024
1.3.5 150 8/14/2024
1.3.4 138 7/9/2024
1.3.3 128 5/15/2024
1.3.2 157 5/7/2024
1.3.1 151 3/21/2024
1.3.0 146 3/21/2024
1.2.5 154 3/19/2024
1.2.4 151 3/13/2024
1.2.3 170 3/12/2024
1.2.1 149 3/5/2024
1.2.0 149 3/5/2024
1.1.5 151 3/5/2024
1.1.4 157 3/4/2024
1.1.3 146 3/4/2024
1.1.2 146 3/4/2024
1.1.1 143 3/4/2024
1.1.0 148 3/4/2024
1.0.0 155 3/4/2024

Ricompilato col dotnet 9.0.+6 e maui 9.0.71