Here is what I have so far - Public Class PokerHands
-
-
Sub InputFormat() 'Function to remove space and change characters to UPPER CASE
-
InputDisplay.Text = InputDisplay.Text.Replace(" ", "").Replace(",","").ToUpper
-
End Sub
-
-
Sub FourOfaKind() 'Four of a Kind
-
-
End Sub
-
-
Sub ThreeOfaKind() 'Three of a Kind
-
-
End Sub
-
-
Sub Pair() 'A pair
-
-
End Sub
-
-
Sub Flush() 'A flush
-
-
End Sub
-
-
Sub Straight() ' A straight, if ace is low
-
-
End Sub
-
-
Sub AceStraight() 'An ace-high straight; 10, J, Q, K, A
-
-
End Sub
-
-
-
Private Sub InputDisplay_TextChanged(ByVal sender As Object, e As EventArgs) Handles InputDisplay.TextChanged
-
-
-
-
End Sub
-
-
Private Sub Button1_Click(ByValsender As Object, e As EventArgs) Handles Button1.Click
-
Dim hands(4, 13) As Integer 'Example: If (2,11) = 1 then is JD
-
Dim SuitsValue() As String = {"S", "D", "C", "H"}
-
-
Dim FaceValue() As String = {"2", "3", "4", "5", "6", "7", "8", "9", "T", "J", "Q", "K", "A"}
-
End Sub
-
-
-
End Class
-
Hi here is what I have my code so far. My question is how to make the program reads the user input "InputDisplay" and then display the corresponding string from the array SuitsValue and FaceValue to the listbox "OutputDisplay". For example: if the user input "aH, AS, 2D, 3C, 4C" the program will return ace of hearts, ace of spades, two of diamonds, three of clubs, and four of clubs? Also how can the program will recognize that the first letter (substring (0,1) is the FaceValue and the second letter substring(1,1) is the SuitsValue? I understand I will need a loop function to determine all five. I am sorry if I am asking stupid questions here but I am really stuck!!!
Thank you very much!
0 914 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Søren Schimkat |
last post by:
Hej Guys
I´m stuck with af problem. I need to replace the HTML code in at table cell
with some other HTML code. Could you please give me a hint on how to do
that?
Regards Søren Schimkat
|
by: Timothy Shih |
last post by:
Hi, I am trying to figure out how to use unmanaged code using P/Invoke. I
wrote a simple function which takes in 2 buffers (one a byte buffer, one a
char buffer) and copies the contents of the byte...
|
by: Martin Olsen |
last post by:
Hi all.
I am creating a program which calculates poker odds. The program should
look at the visible cards (those on your hand and those on the table)
then count the cards needed to improve the...
|
by: Simon Biber |
last post by:
I was reading http://en.wikipedia.org/wiki/Poker_probability which has a
good description of how to count the frequency of different types of
poker hands using a mathematical approach. A sample...
|
by: kinghippo423 |
last post by:
Hello Everyone,
I did a poker program in Java that essencially finds the strenght of a poker hand created Randomly. My program is doing OK...but I'm pretty sure it can be optimised.
This is my...
| |
by: teejayem |
last post by:
I am looking for some help!
I am currently developing a new game for an online community. The
game is called Pokino which ishalf bingo and half poker. Wierd eh?!
Anyway...
The final part...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |