I need help with a homework assingment in VB.Net to simulate the game of poker storing the deck of cards in a two dimensional array (e.g. Dim myArray(4,13) As Integer). The full assignment is below:
where the first dimension ranges over the four suits (hearts, diamonds, clubs, and spades) and the second dimension ranges over the thirteen denominations(ace, two, three, four, five, six, seven, eight, nine, ten, jack, queen, king).
Note: This array should be declared as a form level variable.
Write a program which lets the user type in five cards and outputs the type of hand it is.
The interface should consists of two buttons and one listbox for output. At the beginning, the listbox should not be visible.
The initial interface should be two command buttons, one of which states **Give a poker hand** and the other which states **Quit**. When the button of **Give a poker hand** is clicked, input box should appear asking for a card to be chosen. In the prompt, there should be indicated the range of possibilities, e.g. choose **S** for spades, **H** for hearts, etc.
When the **OK** command button for choosing a card is clicked on the input box, the program should verify that the choice is legal, and if so, put the one in the appropriate place in the two-dimensional array. If the value put in the input box is not legal, then a message box should indicate the inappropriate value and ask for a resubmission. Upon clicking on the **ok** in the message box telling an illegal input was given, the input box should reappear. If the value is legal, the input box should reappear for the next input.
More detail will follow.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).