Question
Needs to be written in C# for visual studio. I need the coding for this question stated below......This application will function similar to a game
Needs to be written in C# for visual studio. I need the coding for this question stated below......This application will function similar to a game of poker. The program will deal out 2 five-card hands and determine what each hand contains.
The program will create a standard deck of 52 playing cards. It will shuffle the deck then "deal" 5 cards to "The Computer" and "The Player". The program will evaluate what each hand has and display the cards graphically as well as printing the value of the hands (as defined below).
- The application must be implemented as a Windows Forms Application program.
- There should be at least three classes (one in each class file) defined for the project. One of the classes will be called Card. Another class will be called DeckOfCards.
- You should add read-only properties to the Card class to get the face and suit of each card.
- You should use a minimum of 3 arrays: 1 for the deck of cards, 1 for the player's hand, and 1 for the computer's hand.
- You should display each hand graphically using the JPEG image files in "Images\Cards\Poker Large" found in the Student Sample Programs.
- You should use a random number to shuffle the deck.
- The hands are evaluated as follows:
- Royal flush - A, K, Q, J, 10, all the same suit.
- Straight flush - Five cards in a sequence, all in the same suit.
- Four of a kind - All four cards of the same rank.
- Full house - Three of a kind with a pair.
- Flush - Any five cards of the same suit, but not in a sequence.
- Straight - Five cards in a sequence, but not of the same suit.
- Three of a kind - Three cards of the same rank.
- Two pair - Two different pairs.
- Pair - Two cards of the same rank.
- High card - When you haven't made any of the hands above, the highest card plays.
Grading 40% - Windows Forms Application runs 20% - Properly state what each hand holds (flush, full house, etc.) 10% - Proper creation and use of card value and suit property in the Card class 10% - State the correct winner of the game (computer or player) 10% - Proper naming of classes, methods, properties, variables, etc. 10% - Documentation of code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started