Making A Blackjack Game For Class?

May 2, 2011

I'm making a blackjack game for class. It's been better programming in VB than it has in C#, but I don't know how to link button subs (BTN_Deal_Click or BTN_Deal; I can't decide which one will work) to one another. For example, after the code in BTN_Deal has been run, the program is supposed to wait for the user to click either the Hit or the Stand button.

[Code]...

View 2 Replies


ADVERTISEMENT

Graphics And Blackjack Game?

May 3, 2011

I'm making a blackjack game for class. Your PlayingCard class totally rocks! I think I said that already Anyway, my board is set up very simply; the player and the dealer have hands with a limit of 5 cards, which I drew as picture-boxes. "sigh" I thought I had this all thought out; the LOGIC of the game was easy in C# console, but applying graphics just adds a whole other dimension to EVERYTHING!

1) Do I need to create an object for each picture-box?

2) How do I tell the program to use cards and their values created in the PlayingCard class to the picture-boxes?

Public Class FRM_BlackJack
'Global Variables
Dim PlayerCards(4) As PlayingCard.Hand

[code]....

View 2 Replies

How To Make BlackJack Game On VB

Dec 1, 2011

I am making a simple blackjack game for school.It involves using object arrays and for next loops.I have 5 labels for the player, and 5 labels for the dealer. I have both their totals displayed on the form. I also have a deal, hit and stand button. I also need to follow the rules of if the dealer >= to 17 they must stand and if the dealer is < 17 they must hit. Does anybody have any suggestions on how i can code the dealers turn.I already made it so the player clicks hit and when he/she is done clicks stand. This is my stand button so far:

lblTotalDealer.Show()
lblD1.Show()
Dim itemarray2() As Label = {lblD1, lblD2, lblD3, lblD4, lblD5}

[code].....

View 14 Replies

Using Images In VB For A Blackjack Game?

Apr 29, 2011

My classmates said I was crazy when I told them I was re-making my old blackjack game in VB.It's actually been going a lot easier than it was when I was doing it in C#, though. I'm hitting some snags, which are commented on in the code. The basic logic is mostly right.My main question is how would I add images to the game? Where would I put them? How would I make sure the suits are randomized, too?

New Code:
Public Class FRM_BlackJack
Private Sub FRM_BlackJack_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code].....

View 6 Replies

IF Function - Blackjack Game - Change Value ?

Apr 2, 2011

I am having trouble with a blackjack game I am creating. I have buttons 1 - 13 (A-K) I have 5 Textboxes which when the above buttons are pressed displays the values in the textboxes. I also have one more textbox which adds up the values of the above 5 textboxes to give your Black Jack Total. The problem I have is if an Ace (11) is in one of the textboxes and the Total Value exceeds 21 i need to have the Ace (11) change its value to 1 instead.

textbox 1 - 5 will be the card values
textbox6.text will be the total Value

I have tried......

if textbox6.text > 21 then and textbox1.text = 11 then textbox1.text = 1

This seems to work fine however it only solves the problem of an Ace (11) appearing in textbox1.text so i tried to repeat the code with the other boxes...

if textbox6.text > 21 then and textbox1.text = 11 then textbox1.text = 1
if textbox6.text > 21 then and textbox2.text = 11 then textbox2.text = 1
if textbox6.text > 21 then and textbox3.text = 11 then textbox3.text = 1

[CODE]...

However this does not work and my program freezes?

View 3 Replies

Saving Results In Blackjack Game

Mar 11, 2010

I need a small bit of help with my Black Jack game in VB 2005. Basically I have the game pretty much complete seems to work perfectly, I have two counters set up, one for dealers games won and the second one for players games won which both add up the results and displays them in a text box. I have another form made to display Statistics, for both 'This Session' and 'Overall', but how do I save the Overall score??

[Code]...

View 1 Replies

Using Blackjack Starter Kit For Poker Game?

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

Writing A Blackjack Game Program In .net 2008?

Dec 7, 2009

I am writing a blackjack game program in vb.net 2008. The program is designed to play 6 players per game in sequence using a pre existing algorithim (basic strategy). The program will play one game at a time using all 6 players or can be set to play 100 games using all six players and then capture the resulting data generated from each player from every card. When one game at a time is played the program works fine. When the program plays 100 games at a time it drops (loses) the data that is being stored in its string variable arrays.

View 1 Replies

VS 2005 Make A Light Version Of A Blackjack Game?

Mar 11, 2010

I'm trying to make a light version of a Blackjack game. The rules I need to use are as follows:

Ace = 1
Normal Cards = 2-10
Color Cards (king, queen, etc,) = 11

The dealer can keep hitting until it reaches 17 or under 21, he must always stay once it hits 17 or over (without busting obviously).

I know the ace normally should be 1 or 11 normally but I don't want to complicate things, I want to get the main thing of the program working first.

Public Class frmMain
'declaration to help generate number
Dim RandomClass As New Random()

[code]....

View 10 Replies

Game Programming :: Foray In Game Making?

Jun 3, 2011

Have attached the code so far and would like to be able to rotate my car sprite through 360 degrees and have it move in diagonal fashion.

View 19 Replies

Making A Game Editor?

Aug 30, 2010

Recently I had the urge to make my own 2d game editor and I don't know where to start and I have searched the web but my results were not

View 5 Replies

Making A Game Trainer In .net?

Dec 17, 2009

I am making a Game Trainer in vb.net, this is the current code I have.

Imports System.Runtime.InteropServices Public Class Form1

[Code]...

I can read from the memory address fine, but when I try to write to it nothing happens, no errors and the value does not get written. What am I doing wrong?

View 2 Replies

Making A Launcher For A Game?

Jan 8, 2012

Alright, well im making a launcher for a game i play. and i want to make it so it says how many users are online. and im not sure how to code that out??

View 25 Replies

Making Solitaire Game In VB

Jun 29, 2010

would like to make a solitaire game in visual basic however do not know where to start. Could someone please give me some direction and help as to how to build this?

View 5 Replies

Interface And Graphics :: Making A Custom Class That Mocks The System.Drawing.Rectangle Class?

Jul 6, 2010

I'm making a custom class that mocks the System.Drawing.Rectangle class because the Rectangle class doesn't have a name property. I need a name property because I am adding all of my rectangles to a collection and I need a little more info stored than just their locale and size. So I changed the _onPaint event but nothing is working out when I run the program?

Public Class Rectanglar : Inherits UserControl
Public BackgroundColor As Color = Color.Blue
Public Sub New(ByVal name As String, ByVal XY As Point, ByVal Widthy As Integer, ByVal Heighty As Integer)

[code].....

View 5 Replies

Game - Making The Map Scroll With The Player

Mar 21, 2012

I am working on a game using Visual Basic.NET and XNA. I am having trouble making the map scroll with the player. I can move the map at a square at a time(32x32) but I don't like the way it looks. I want to move at a fluid rate if possible. I want the player to be able to walk half-way through a square then see a half-square to either direction your moving. IE: Walking left, walk half-way through a square then to the far left of the map see half of the next square going to be drawn. But I don't want just half-way, I want to be able to just have fluid movement where you can walk to an 1/8th of the square and see the next 1/8th on the other side of screen if possible... To open this project and view you must have Windows Phone SDK installed can get it from Microsofts website......Note:Only up and down movement have been added into the game.

View 2 Replies

Game Programming :: Making Two Dialogs Pop Up On After The Other?

Jun 18, 2011

I can currently make a dialog1 pop up, then the user clicks "Yes" for dialog1, then dialog2 pops up, and if the user clicks "no" instead of "yes", dialog2 reappears again. I've got a headache now, but I will re-look over my code to see if there are logic errors.

I originally had dialog2 and form1 (the form1 was acting as dialog1). But The thing was that I do not how to give properties of a dialog to a form (i.e. not make the user be able to click other windows while this form is open) IF I could have code that says Me.bringtofront (which I have tried) didn't work though. If I apply this command to a form I get an error:

code: Form1.showdialog()
error: Please make form1 not visible. something a long those lines. But what I don't understand is form1 was never open.

What do the standard lines of code do?:

Me.DialogResult = System.Windows.Forms.DialogResult.OK
Me.DialogResult = System.Windows.Forms.DialogResult.Cancel

View 2 Replies

Making A Chess Multiplayer Game

Jun 19, 2012

I am trying to make a Chess multiplayer game in Visual Basic. Its a two player which will be played in a normal way and not even over LAN. So far, I am done designing the board.

My logic is: First, on clicking any square, the click event handler will check whether a piece resides on that square. If not, then it checks if a piece is to be moved to that square. If both are negative, then it does nothing.

Now, the problem with this is, how do I code the click events? Also, I have represented the board using a 2dimensional array. But how do I update the positions after every move? And how do I check whether legal move is being executed? One more thing I want to add is whenever a piece is clicked, the possible legal squares should be highlighted.

For this, what I did was, for every click event on any square it checked if there was a piece. If there was a piece, then it highlighted all possible moves for that piece using If-Else-If logic, but it turned out to be too cumbersome and too long. And another problem which arose was, how do I know that if the user clicks an empty square to move the piece there?

View 2 Replies

Making Cards For Card Game?

Mar 11, 2012

I am using Visual studios 2010, And what I am trying to do is make a card game, and I have some ideas for how to put a lot of it together however I am having trouble getting started with making the cards to begin with.So I need something to call to represent the cards with numerical values with ace being 1 and king being 13.

View 4 Replies

Process Of Making A Snake Game Using .NET?

Jul 23, 2010

I am currently in the process of making a snake game using VB.NET... I was just wanting to gather ideas on how to do the body of the snake..Currently I have a class called SnakeBody which contains the following code:

[Code]...

I guess what I am asking is if Dim body As PictureBox a logical thing to put in my class. As in, I am not sure if that is the correct thing to do? To create the actual body of the snake I will have an array of these SnakeBody objects. If `'Dim body As PictureBox is valid How do I reproduce the same picturebox everytime my snake eats something?

View 2 Replies

Snake Game Food-Making?

Mar 3, 2009

I just started a snake game. This is what I have so far:

View 2 Replies

VS 2008 - Making A Tool For The Game?

Aug 23, 2009

Well the thing is im making a tool for a game(No hack)the display is like this Name : [here a text box] Time : [Here can be laber or textbox] [start] [stop] [reset] in the first textbox the user who is using the program have to put a player name and in time when they click start in the second textbox or labe it should start countingdown from 1 hour 1:00:00.Stop only stop the time but let the time where it was and reset to reset the time.so when the time get to 0 something should pop up with the name of the player that the user put in the text box like MsgBox Frolox's time has finish or something like that but it have to appear in top of everything.

View 16 Replies

VS 2010 Where To Get Started Making A Game

May 23, 2010

Where should i start? any tutorials out there? I only know the basics of VB and how to works.

View 5 Replies

Game Programming :: Making A Picturebox For Every Pellet?

Nov 22, 2010

I'm doing a pacman game and im stuck on how to make the pellets. This is the code i have so far.I was thinking of maybe making a picturebox for every pellet and then make an if statement that if pacman goes on a pellet it disappears and he gains a point. But this would be a VEERRRYYYY large if statement and im sure there is a better way to do it.

View 3 Replies

Making A Crosshair(for A Game) Which Needs To Be Absolutely Topmost

Jul 7, 2010

I am making a crosshair(for a game) which needs to be absolutely topmost!//. This can only be done if the form's topmost property is true, and the next second false, and then true...etc..

But is there a possibililty to make sure your form is absolutely topmost.. Or make another program/application not topmost so that yours is.

My questions is only about the topmost not about the rest of the application because I have made everything already.

View 2 Replies

Making A Launcher For A Game Called Cabal?

Feb 25, 2009

Uhm, I am making a Launcher for a Game Called Cabal, and it will be for Private Servers. The thing is, that it is so easy to Hack/cheat on Pservers, and because the files for Cabal we use are old, we dont have good protection against hackers. One of the things is, that when a player presses CTRL+***+*** or something, they acivate a GM command, which is only allowed for GM's. I need to prevent that, and I also need to prevent people from using Cheat Engine. I am also planning on using Update Funcion, so if a player tries to change the CabalMain, so the Version will change (Which must not happen. If they change it to a specifik version, they can use GM commands)If there is any Anti-Hack out there, which is free, please link it. I have google'd for 1 hour. And more, and just did not find anything.

[Code]...

View 3 Replies

Making A Random Number Guessing Game?

May 29, 2009

im making a random number guessing game type thing, i have the main thing done, but I was just wondering, how could I get it to show the integer rndnumber in the message box that comes up? I think its something like &= or something, but I havn't even been using VB for a week, so im can't figure it out. Here is my script:

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If RadioButton1.Checked = True Then[code]......

View 7 Replies

Making An Game Launcher Kind Of Thingy For Pc?

Jul 3, 2009

I have this question. I am making an game launcher kind of thingy for my pc. I want to show all the games i own, and when you press it, it launches. But there is this admin pannel to add games,

but how should i save the data? Since i must be able to add as mutch games as i want. How should i do that?

View 4 Replies

Making An Interactive Computer Survival Game

Jun 2, 2010

I was thinking about making an interactive computer survival game, such as the Rainbow Survival levels in Little Big Planet. I was wondering if there was a tool i could use to create the objects, such as the character, explosives, bombs, and point bubbles. i know how to make all the objects move, i just don't know how to create them to begin with, is there a certain tool in Visual Basic 2008 i could use?

View 4 Replies

Tutorial For Making A Text Based Game In VB?

Mar 25, 2010

is there a tutorial for making a Text Based Game In Visual Basic?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved