Skip to content

DrzwiPercepcji/PokerHands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PokerHands

A simple library for poker hands recognition.

Usage

using PokerHands.Enums;
using PokerHands.Interfaces;
using PokerHands.Models;
using PokerHands.Scores;

namespace YourNamespace
{
	public class YourClass
	{
		public void YourMethod()
		{
			IScore score = new Flush();
			var cards = new Card[5] {
				new Card() { Suit = Suit.Hearts, Rank = Rank.Ace },
				new Card() { Suit = Suit.Hearts, Rank = Rank.Rank10 },
				new Card() { Suit = Suit.Hearts, Rank = Rank.Jack },
				new Card() { Suit = Suit.Clubs, Rank = Rank.King },
				new Card() { Suit = Suit.Hearts, Rank = Rank.Queen },
			};

			bool result = score.CheckScore(cards);
		}
	}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages