Poker Game Is Made In Web Form?
Jun 9, 2010I am making poker game using webform in visual basic?However , i am stuck now. I don't know how to random the cards
[Code]...
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]...
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]....
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 RepliesI 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 RepliesWhich programming language will be best for big poker game where cash deposition is must?
View 2 RepliesAnybody know how to hold a card in poker game?[code]...
View 1 RepliesI'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 RepliesI 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 Repliesokay, 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.
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]...
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 RepliesI 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]....
I have made a program where you are a circle and the enemies are squares coming at you. You press Space to shoot and you gain points every time you hit, using arrow keys to move, there are pickups, etc, etc.However, I no longer want to use placeholder circles which are drawn like this:[code]However, the result is very very slow moving aliens. Its not a slow timer or anything(I have about 2 in there working simultaneously) but poor FPS. It might be my system but when I checked it only took ~10MB of memory. I understand that VB.NET isn't quite the choice for game making since its not as fast as some of the other languages(C++, C#) but is there any way I can draw these without sacrificing FPS?[code]
Okay, once again, explaining everything from the top. CollisionDetect() contains logic for evaluating what has hit what in the entire game. This includes Player and Pickup, Player and Object, Object and Projectile, Object and Advanced Projectile, Object and Player. Next, it evaluates whether or not if a pickup has been used or not. When the player hits a pickup, a boolean is set to true. This means that every iteration of this timer, one is added to variable ResetInt. When this hits 80, or 4 seconds(50ms timer) the pickup's effects are reset. Additionally, the boolean is false, so it won't do that same again.Next, it moves all of the objects on the form. These include the the objects, projectiles and pickups. It also checks if they have reached the end of their 'path' (ie If the projectile goes far enough to the right, it is removed from the game).
So I pretty much built the game, that was the easy part. I am having trouble entering a name on my first form(startup) and keeping track of the score on second form(game) and displaying it both combined on the first page with the current users score. Also the way it set up now if you are running the game for the first time it says can't find LowScores.Text. Start Up
CODE:
CODE:
I am trying to program a dialogue box to appear when the exit button from my 'Login' form is clicked. The form has three options; yes, no, cancel.
[Code]...
I have made a custom Control in vb.net and I want to add it to my form during runtime but have no idea how to do it in vb.net.
I am used to working with vb6.0 and now trying to learn how to do it in vb.net
I need a fast and simple way of adding a control (which I made) to a form during runtime..
I made a form with a width of 600 and a height of 600. When to "Paint' event andwrote"e.Graphics.DrawLine(Pens.Blue,0,0,Me.Width,Me.Height). I expected a line from the top left conner to the bottm right corner. NO NO NO it fell short on the x(width) axis. I do not know who came up with drawing in boxes, but I HATE IT.
View 3 RepliesI have made a form to connect to a SqlServer but i have hit a dead end as the PHPMyAdmin password table is encrypted so the Login only works when you enter the encrypted password in. Is they anyway to decode the password so the password can be read?
View 10 RepliesHow do I upload what I made form Visual Basics onto my website??!
View 4 Repliesi have created a project with 20 forms in vb.net 2008
View 2 RepliesI'm building a form with just a combo box in it that contains a list of other forms that I made. I want to program the combo box so that if a user opens it and clicks on "Web Browser", that form with the combo box will close and the web browser that I made will open. Another example is that if a user selects "Media Player" from that combo box, the form with the combo box will close and the media player that I made will open. How would I program the combo box to do this?
View 3 Replieswhen closing the form, checkchanges() is run in order to check if there is data changes..in checkchanges(), i compare data in database and form..if data in form is not same as in database, it consider data has been changed..thus, if there is changes, user will be promt to save data before close..the problem is, when my form is closing, the checkchanges() always show no changes, even when i made changes..this is because, when data is compared (between database and form), the form is already commit changes in database..that is why , when data is compared, it is actually compare the same value...
For example:
*when form load*
database: employee number = 1009
textbox: employee number = 1009
[CODE]...
That is why checkchanges() always show no changes.because it commit changes to database before it made comparison..what should i do to prevent from commit changes when form is closing?
I have designed a complaints form for my work (free of charge just for my cv). I designed the form for the resolution 1280 x 1024. My problem is when a user with a smaller resolution say 800 x 600 uses it. The form will be out of sync with the screen as shown below (tested on my on computer). So I am wondering is there a way to test the screen size of the users computer then readjust the size of my controls according to the size of the screen. By the way all of my controls are anchored so that they stay in the same place.
[Code]...
Im on project about database and I actually im facing 2 major problems.#1I made a form where the user can create a new record.Actually a new product like :
Public Class newgame'Dim cmd As OleDb.OleDbCommand = New OleDb.OleDbCommand("INSERT INTO clients(name,surname,address,phone home,mobile phone,e-mail,memo) VALUES (' " + TextBox1.Text + " ' , ' " + TextBox2.Text + " ',' " + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" +
[CODE]...........................
I am having Socket server, and I have two forms. One is the main form for the server and the other one is a custom made messagebox. When a request comes to the server the main form has to invoke the second form (messagebox). When the main form is open for the first time everything works fine. But when I close the main form without closing the application and open it again and request comes to the server the custom made messagebox opens but it freezes and looks like this:
[Code]....
I've made a project with serveral forms and instances of classes.The program works fine until the last form close.2 messages were shown:1. The exception unknown software exception(0x0eedfade) occured in the application at location (?????????)2. Regular dialogue "Runtime error 217 at (????????)
View 2 RepliesI just made a rapid file transfer form for my photos.In which I drag photos into a listview with my destination folder set.I assign each individual file transfer to a new thread. This works very fast as compared to the standard drag n' drop.
View 2 Repliesi'm trying to make a login form connected to an sql server database. my data base has records like this:
fname - lname - minit
each name in a separate column, and i wanted to use the name as the login username, so in the dataset designer i made a new column and concatenated the names together like this: lname+fname+minit but at Dim dr As SqlDataReader = cmd.ExecuteReader i get this error:
"Invalid column name 'username'. Invalid column name 'username'."
i'm asuming that's because username doesn't actually exists in the database, only in the dataset.is there a way to get that to work with out the username column actually existing in the database?
Imports System.Data.SqlClient
Public Class LoginForm
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
[code]....
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 RepliesI'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