C# Programming
Specifications
Write a program that evaluates a single poker hand. Display the hand and print out what type it is. The ranks of hands are listed below from highest ranking to lowest ranking.
Use a structure for the card, and an array of structures for the hand. You should write a method for each type of hand, returning true if the hand fits that criterion, and false if it doesn’t. The structure you will use should look something like the following:
public struct card
{
public char suit; // 'C', 'D', 'H', 'S' - for clubs, diamonds, hearts, and spades
public int value; //2-14 – for 2-10,Jack, Queen, King, Ace
};
struct card hand[5];
To enable you to test this program. nine data files, 1 data file for each ranking hand, are provided for you. Your program should provide a menu to allow the user to select which file will be tested. When you display the hand, you should obviously print out the cards more meaningfully. For instance, C 5 would be the 5 of clubs, S 11 would be the Jack of Spades.
Royal Flush:
• A, K, Q, J, 10 all of the same suit.
Straight Flush:
• Any five card sequence in the same suit. (Ex: 7, 8, 9, 10, J and A, 2, 3,4, 5 of same suit).
Four of a Kind:
• All four cards of the same value (Ex: J, J, J, J).
Full House:
• Three of a kind combined with a pair (Ex: K, K, K, 10, 10).
Flush:
• Any five cards of the same suit, but not in sequence.
Straight:
• Five cards in sequence, but not in the same suit.
Three of a Kind:
• Three cards of the same value (Ex. J,J,J).
Two Pair:
• Two separate pairs (Ex: A, A, 8, 8).
Pair:
• Two cards of the same value.
Thank you.
Hi there, I have done poker card evaluation programs before and I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.
Hello, I'd love to help with your project! I am new to freelancer and looking to build up a reputation still. I am finishing up an Associate of science degree in which I have taken classes in C++ C# and Java. I also have experience working in these languages outside of school for projects both personal and otherwise.