Help with my video poker program

12-17-2001, 12:33 PM
I need help with a simple video poker program i've been working on. I made an image list of all 52 cards, and pushing the deal button will randomly generate 5 of them, I added checkboxes to make the hold buttons so when you click redeal it will hold the cards you want. Everything works, except I have to figure out how to make it score the different hands.

12-17-2001, 01:38 PM
I did a similar thing with a Yahtzee game that I made. Take a look at the following link:

Similar to poker, Yahtzee uses straights, full house, 3 of a kind, etc. You can look at the ComputeScores sub on the main form for an idea of how to capture the scores for a poker hand.

I hope this helps. Let me know if it's not very clear to you.

12-17-2001, 01:47 PM
this is probably the coolest part of your game, i would like to code it myself for sure... i saw a few samples on the net try to do a search and you should find tons! here's one place where you could have code samples planet source code pDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TR UE&txtCriteria=poker&optSort=Alphabetical (http:// pDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TR UE&txtCriteria=poker&optSort=Alphabetical)

12-17-2001, 02:16 PM
If you want an alternative to using an imagelist to store all 52 cards, you could look into using the Cards32.DLL which comes with windows, it contains the cards just like used by solitaire, freecell, hearts etc. etc.

For a little tutorial, click here (Lucky's VB) (

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum