VS 2008 - Game Poker Hands Database
Mar 29, 2009
okay, so i'm making a poker game, and i need to determine a winner. what i was thinking, to determine a winner, was to assign each card a number which will identify it. then read all the card identifiers as a whole, and that would identify the hand. i can then use the hand identifier to refer back to something which has all the hands ranked. i think probably and e num would be the better option (simply because it keeps everything in-game) but if something else proves a better option, i'm willing to change.
so basically, i'd like to know if this is a good choice, and if it is, how i'd go about doing it. also, i know there's a way i can automatically create each hand identifier, so any idea's on that would be great.
View 6 Replies
ADVERTISEMENT
Jul 2, 2009
I am working on a poker game and I have the game setup the way I want it in terms of graphics and I have the code programed to deal the cards out exactly how I want them. Granted, the code is very simplistic, but functional for a new programmer like myself. I'm sure there are other more efficient ways to code my game, but I like mine so far because I can at least understand the majority of it. With that being said, here are a few problems and questions that I have.
1. How come when all 12 cards are dealt out I have some cards repeating in the game? For example, I get queen of diamonds in more than one picture box when I only want the card to be dealt once and then removed until the next game.
2. I was hoping to have a button 3 to clear all the boxes, basically resetting the game to the next game. When I hit button 3 it only clears the contents of picturebox 10 and 12.Other notes: I have the deal down the way I want it. It deals the first 10 picture boxes and a second button deals the 11 and 12 picture boxes.
3. I know this is my next step so I want to post it with the code I currently have. I want to start taking my project one step further by evalutating each of the three rows of cards (3 rows of 3 cards each - I'm not worried about the dealers hand (picture box 10, 11, 12 yet). So I want to evaluate a row of pictureboxes against a "pay scale" and display the win in a text box or label next to the 3 card hand. For example, Q of diamonds, Q of Clubs, Q of spades would win 15, etc. ( have a weird feeling I may have to change the names of the cards (I have them named card1, card2, etc. right now) to something that identifies them in order to evaluate the hands.
Here is the code that I currently have. I'm using visual basic.
Public Class Form1
Dim Rndm As New Random
Dim myPB(11) As PictureBox
Dim HiddenCards As New List(Of String)
[code]....
View 1 Replies
Apr 1, 2009
I m writing a video poker style game. the form consists of the player's 5 cards, a deal button, a hold button for each card, a button to select amount to play that hand. im using Visual Basic 2008 Express Edition.
View 10 Replies
Oct 14, 2010
I am trying to develop a poker game and I followed the follwoing tutorial -[URL] It works awesome for the logic but I am looking one more functionality to enter the first two cards by the user instead of automatically creating it. I am fairly new to VB coding and this program is too advanced for me to understand.
View 5 Replies
Jul 6, 2009
Which programming language will be best for big poker game where cash deposition is must?
View 2 Replies
Jun 11, 2010
Anybody know how to hold a card in poker game?[code]...
View 1 Replies
Jun 9, 2010
I am making poker game using webform in visual basic?However , i am stuck now. I don't know how to random the cards
[Code]...
View 4 Replies
Jul 7, 2009
I'm sitting here with a print out of the class deck, class hand, and cardgameframework from the blackjack starter kit for visual basic and I'm lost as to where I need to go to use the above mentioned classes. I am looking to create a simple poker game using these classes as a base. I'm not looking for anything fancy, just something functional. Starting off I would like to hit a deal button and have it deal 5 cards into pictureboxes and then give me an option to (mouse click) hold any number from 0 to 5. Once I have clicked the cards to hold, I would like the program to deal new cards into the other pictureboxes. If I could get the program up to that point it would be a great place to start. Can anyone point me in the right direction? Has anyone used the cardgameframework before?
View 1 Replies
Jun 10, 2010
I am looking to create a video poker card game using visual basic.I have limited knowledge of visual basic 8 but was very curious about visual basic 10.
View 4 Replies
Apr 24, 2012
I have finally been stumped this semester in my Visual basic course. Mainly because I have to write a program that is started from something that I have not created. I have to create a program that will take in info from the user, then spit out the poker hand that they are holding. For instance, the user will type in 1 for ace, 2 for 2, 3 for 3......10 for 10, 11 for Jack, and then in the next column type in C for Clubs, S for Spades.. and so on. Here is the code I have been given:
[Code]...
View 5 Replies
Jun 25, 2009
I am very new to this whole programming thing and I have read several books and many websites but I can't get a good start on creating a video poker game. I understand that I need to create classes, but have no idea how to start. Most of the things I have been reading have been for Visual Basic 6.0 and it appears hard to understand. I am looking for some type of tutorial of how to create the classes I need and how to get the actual information from the classes into my form. Can anyone out there provide me with a good starting point? Is there any good (and easy) code out there to get me started. I feel that if I can get a good starting base, I can learn from there.
View 3 Replies
Aug 23, 2010
I need help and wondering if you can help me to get my first project...it's a hobby and wondering if you can get me code for this so i can see how it does it* Evaluate( ) Prints the evaluation of the hand to the evaluation Label.
o If IsFlush( ), prints "flush; "
o calls SetPipArray( )
o Uses a For Loop to go through pipArray. For each element, uses a Select Case statement to
[code]....
View 9 Replies
Apr 8, 2009
We are working on a poker game as a class project. My part is to evaluate and then determine the value of a players hand. We are evaluating from highest to lowest (ie. determining whether the player has a straight flush, 4 of a kind, full house, flush and then going all the way down to a high card only "worthless hand"). My part is evaluating the 2 pair, 1 pair, and nothing hands. The hand will be a two-dimensional array with the row(0 thru 12),column (0) containing the numeric "face" value of the cards and the column(1) containing the value assigned to the suite (1=clubs, 2=diamonds,3=hearts,4=spades). I have NO IDEA where to even begin this evaluating procedure.
View 4 Replies
Jun 1, 2010
I cannot get my hands on any "save" or "save as" code to figure it out, can anyone point me in the right direction?
usiing VisualStudio 2008 vb.net
Brenton W Garman
View 2 Replies
Mar 18, 2012
I have to design a form that analyzes a poker hand entered by the user in the textbox and then the listbox has to display the type of hand entered. for example, four of a kind, three of a kind, a pair, a flush, a straight if ace is low, an ace-high straight that is the sequence 10 j q k a, etc.I have no idea where and how to start the coding.i am really stuck..
View 9 Replies
Jul 9, 2009
I've been using these boards for about a year now and I'm slowly making progress as I try to learn visual basic. My objective is to program a number of various video poker games. Many great people have helped me out in my process of learning this program, however, I still feel that I don't have a great handle on it just yet. I'm not coming in here asking for someone to do the work for me, however, I am asking if anyone out there has a very simplistic video poker game that they designed in visual basic that I could use as a reference to build my games from. Being a teacher, I realize how everyoeone learns differently, and I'm the type of person who learns best when I work backward. If I can see the end result and then work my way backwards I feel that I will have a much better understanding of how the entire process works. Does anyone out there have a simple video poker game that I can use to build my games from?
View 1 Replies
Sep 23, 2009
In your opinion is possible to read the chat text displayed in the windows of the several Texas Hold'em Site programs (PokerStars, Titan etc)?[code]...
If I replace "Edit" with all the Classes of the Poker programs shown by Spy++.. the code don't works
In notepad the Class Styles are CS_GLOBALCLASS, in the several Poker programs them are CS_PARENTDC... may be this is the problem? CS_PARENTDC classes don't accept the WM_GETTEXT request?
View 11 Replies
Mar 20, 2012
I am trying my hand at making a simple poker hand analyzer in VB 2010 for a distance education intro to VB course at my school.My goal is to represent the cards in a table array. Rows are suits Clubs/Diamonds/Hearts/Spades and columns are values (A, 1, 2... K). However I have no clue how to design a Sub procedure that will recognize the hand the user inputs and add any possible results to a listbox (fourkind/threekind/pair/flush/straight/ace high straight). I don't understand how exactly I'm supposed to do this. My criteria isn't very strict. I can have a hand with more than one description, like a fullhouse + threekind + pair can all be used to describe one hand.
What I think I need to do is split the entered string to get 5 strings (each is a card). Then somehow find these in the table? I have no idea how to do this and I'm stumped... The instructions loosely call to look for a boolean value where cards(i,j) is set to 1 of the player is dealt card j in suit i. But I do not know how to achieve this.
As you can see my understanding on VB is extremely... basic (no pun intended). It's my first time ever learning a computer language, and I really regret taking this course via distance ed because the instructor and the TA absolutely refuse to communicate with the students. I am trying my best to practically self-teach with the thick text book.
View 9 Replies
May 2, 2009
I have code to deal cards and compile a string list for player and dealer. I want to rank the cards for both player and dealer. I dont know how to compare characters in a string or text (which would give me a starting point).
My Code:
View 1 Replies
Apr 6, 2010
I have this program im making it is supposed to be a basketball game monitor. The user enters two teams and the 12 players on each team then it has you pick the 5 active players and takes you to the run form where you can start the game once started you can add things like fouls and baskets made and attempted if a player gets 5 fouls or you hit stop clock you change which players are active and its supposed to update the database through the dataset and dataadapter but it doesnt seem to update the database with the info put in the datagrid view.
Here is the code of the run form i will also attach source in zip file if needed to point out mess ups
Update: When you hit resume game after change of players is when it puts zero on everyone again.
Basketball-RealTime-Monitor.zip (322.22K)
Number of downloads: 74
Imports System.Data
[CODE]...
View 3 Replies
Apr 2, 2008
im trying to make a game in visual basic in which your character can move around, jump, and kill things. I can get the picture box with the character to move and everything is fine. but i did run into one problem. when the character moves over a tree (or something) you can see the gray backround of the character as i made in paint. how do i make the backround of the picturebox transparent?
View 4 Replies
Nov 18, 2011
I want to make a program that enables a game to have more than one instance running, where it would otherwise be unable to be done. How should I go about this? A sandbox? Hack?
View 3 Replies
Oct 3, 2011
Im new to VB. how do I get to add the score.my code is
[Code]...
View 6 Replies
May 4, 2011
I have created a scrabble game that generates random letters. For the user to type in a word using the random letters they have to type it in a text box.
I want my program to prevent users from typing in letters that are not provided in the text box and to allow them to type in the random letters that are provided.
View 4 Replies
Feb 16, 2011
I'm trying to make a simple fruit machine game for windows mobile device.
I can create the game easily enough and flip through pictures in a picture box to display the correct symbol.. but what I'd like to do is do a proper spinning reel, but have no idea where to even start.
What I have is a list of images in an imagelist (or individual files) - what I'd like is them attached to each other and moving downwards, preferably as though it were going around a drum but just them moving would be a start.
View 7 Replies
Feb 1, 2010
I am trying to make a game which basiclly lets you shoot ducks. i have a picture as a background (set as form image) i then have picturebox's with ducks flying flying around you shoot them the disapear etc.
My problem is the image. i have a picture of a duck and a blue square round it. and i would liketo make it transparant because birds dont fly with blue squares.
Below is an image to illistrate my problem
I have tried adding transparent background, transparant key etc
View 2 Replies
Apr 18, 2012
On programming assignment without having any real experience in vb. I guess I don't understand subroutines that well. When the program runs it never goes to the computer's turn and does not update the users score either. This assignment is already in but would like to know what is going wrong. Using VB 2010, and this is windows application.
Code:
Public Class Form1
Dim Myturn As Integer
Dim Computerturn As Integer
[CODE]...
View 6 Replies
Mar 11, 2010
I'm trying to make a 2D platform game and I'm pretty inexperienced at programming. I've coded the player to move left and right and jump, but I can't figure out how to prevent multiple jumps while the player is in the air. Anyone know how to do this?
View 8 Replies
Jan 13, 2012
Check Score: The winner is the one with the highest score less than or equal to 21If both scores(player total and computer total) are over 21, or if both are equal but under 21, the game is declared a draw.
There is something wrong with this line:
If intPlayerCardTotal < intScore And intComputerTotal < intScore Then
MsgBox "Draw"
[code]......
View 6 Replies
Apr 30, 2011
Upon changing the field size a game should restart. Upon trying to do so I see the previous grid (e.g. 10x10) displayed on top of the new one (e.g. 4x4). How would I prevent this and indeed start the game fresh?
View 10 Replies