Poker Visual Basic Average ratng: 4,6/5 4011 votes
P: n/a | On 16 Apr, 15:14, 'Mike C#' <x...@xyz.comwrote: <teeja...@gmail.comwrote in message news:fc**********************************@d45g2000 hsc.googlegroups.com...
I use cards.dll that is part of Windows. *The same dll that is used in Solitaire and such like.... enum rank ace two three etc etc... end enum enum suit heart spades clubs diamonds end enum The cards are represented as follows:- card = rank + suit * 4 You would be better served to extend that class and add a method that returns the split up rank and suit for a poker-style game, since ranking poker hands is easier that way. Also what if you want to add Jokers to the deck or handle wild cards? *The OP didn't specify, but doesn't sound possible with cards.dll.- Hide quoted text - - Show quoted text - I decided at the outset that I wasn't going to add functionality to deal with jokers/wild cards. So create a method that would determine both rank and suit as seperate objects/variables and use those to determine the poker hand? |
|

Poker Virtual Background
Analysis - The FormLoad subroutine, which Visual Basic calls when the user starts the program, disables the Hit and Stay buttons (Lines 2 and 4) and the starts a new game by simulating a click on the Start Game button (Line 4). The Poker-eval defines two basic kinds of masks. One is a hand mask. This consists of a bit field containing 52 bits, one bit for each card. A hand is represented by ORing each card bit to create a definition of a hand.
daefiquecus1983.netlify.com – 2021