Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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).

  1. The application must be implemented as a Windows Forms Application program.
  2. 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.
  3. You should add read-only properties to the Card class to get the face and suit of each card.
  4. 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.
  5. You should display each hand graphically using the JPEG image files in "Images\Cards\Poker Large" found in the Student Sample Programs.
  6. You should use a random number to shuffle the deck.
  7. The hands are evaluated as follows:
    1. Royal flush - A, K, Q, J, 10, all the same suit.
    2. Straight flush - Five cards in a sequence, all in the same suit.
    3. Four of a kind - All four cards of the same rank.
    4. Full house - Three of a kind with a pair.
    5. Flush - Any five cards of the same suit, but not in a sequence.
    6. Straight - Five cards in a sequence, but not of the same suit.
    7. Three of a kind - Three cards of the same rank.
    8. Two pair - Two different pairs.
    9. Pair - Two cards of the same rank.
    10. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions