A library for performing a Poker showdown
- The Library was built using .net standard 2.0
- The CLI application was built using .net core 2.2. In order to build, run & test. Please install the .Net Core 2.2 (v2.2.8) SDK at https://dotnet.microsoft.com/download/dotnet-core/2.2.
- Was not able to confirm, but if you're using VS2017 SDK v2.2.110 is the last version supported by VS2017.
The fastest way to build, test and run the project is by...
- open your favorite terminal & make sure dotnet sdk is avaiable (i.e.
dotnet --version
; version number should show up) - change directory to
<path_to_repo>
- execute
dotnet clean
thendotnet build
to make sure solution builds - execute
dotnet test
to run the tests - execute
dotnet run --project PokerHandShowdown.Cli
to use the CLI application
- The CLI interface will loop through the creation process to add player hands.
- First, it will ask you to enter a name of the player
- Second, it will ask you to enter the player's hand
- The CLI represents a hand something like
Ks-Qh-4c-10d-9s
- each card is delimited by
-
- each card first expects the card value (2 -> 10 or
J
for Jack,Q
for Queen,K
for King,A
for Ace) followed by the suit (s
for Spade,h
for Hearts,c
for Clubs,d
for Diamond)
- each card is delimited by
- The CLI represents a hand something like
- Once all the player hands have been entered and the creation loop has been terminated, the showdown will happen and a winner will be displayed