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


ADVERTISEMENT

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

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

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

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

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 How To Make Trial Version Of Software

Feb 14, 2011

am using visual studio 2005 professional edition (vb.net) at front end of my project, my project is completed, i have created the simple setup file, but i want to create its trail version too, i mean a full fledge setup, so how do i made it in vb.net?

View 16 Replies

VS 2005 Way To Make The Game Of Life?

Mar 2, 2010

I have two "Game of Life" programs. One uses a list of points that represent the live cells, and the other uses a fixed-size grid. The one using the list of points can zoom in and out, is much more elegant in coding, and has an unlimited size grid. However, it needs to search for points in the list, and the more points in the list, the more time it takes

View 5 Replies

VB Power Control - Make The Light Flash On And Off

Apr 17, 2010

I'm trying to make a USB strobe light type thing. I have a cut USB cord with an led attached to the black and red wires. Now I'm trying to write a script to make the light flash on and off really fast. I've tried several different apis but none are doing it.

View 2 Replies

Make A Christmas Light Animation Via Computer Control?

Jan 29, 2012

I am trying to make a Christmas light animation via computer control. I am using VB.Net and have tried several examples I have found, but I get the same error: port is closed. The code I am using is this:

Imports System.IO.Ports
Public Class Form1
Dim instance As New SerialPort

[Code].....

I have tried several things and I still get the error message that the port is closed.

View 6 Replies

Make A Blackjack Program - Execute A Different Piece Of Code Each Time A Button Is Pressed By The User?

Nov 22, 2010

I am trying to make a blackjack program and I need to execute a different piece of code each time a button is pressed by the user.

View 5 Replies

Make Programs Use A Lower Version Of Net.framework Other Than The Newest Version 4 That Comes With VS2010?

Jun 10, 2010

Is there any way to make my programs use a lower version of net.framework other than the newest version 4 that comes with VS2010?I use my programs within a closed network and there isn't an easy way for me to install any software since I'm not the administrator.

View 3 Replies

Game Programming :: Make A Game In VB In Which Character Can Move Around, Jump, And Kill Things?

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

Game Programming :: Transparant Images - Make A Game Which Basiclly Lets You Shoot Ducks

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

Projectile Motion - Make A Game Similar To The Impossible Game?

May 19, 2011

I'm doing a project for school. I'm trying to make a game similar to the Impossible game. I need a square (picturebox) to jump but I want gravity to effect it.

View 1 Replies

Developing A Minesweeper Flags Game And The Multiplayer Version Is All Setup?

May 17, 2012

So I'm developing a minesweeper flags game and the multiplayer version is all set up, but the single player version is still under developement. It's important to refer that I'm using a DataGridView, and I'm applying r = tab1.CurrentCell.RowIndex + 1 and c = tab1.CurrentCell.ColumnIndex + 1 to see where the player clicks. What I want to do is to make the AI click any random cell when it's turn comes, but how do I do this.

View 1 Replies

IDE :: Assembly Version, File Version And Publish Version In ClickOnce In VS 2008

Mar 31, 2009

How they relate and differ from each? What are the best practices for version control? Is there a primer about publish online? Or a good book?

And is it possible to make ClickOnce and a msi in one solution of VS 2008? If so, is there any conflict or pitfall?

BTW I am using VB if that makes any difference.

View 1 Replies

Game Programming :: Make A Matching Card Game In VB 2010 - Show Cards For 10 Secs Then Change Cards To (AppPath & "Cards Ed.png")

Apr 19, 2012

I need to make a matching card game in VB 2010. i have generated my cards but now need to show the cards for 10 secs then change the cards to (AppPath & "Cards ed.png"). then when a user clicks on the card the card will flip over.*How would i set a timer to turn all my cards into*(AppPath & "Cards ed.png") after 10 secsbut still have the values from the array and when i click the cards they flip over (from red card to numbered card)

Code:
Private Sub Place()
Dim Counter As Integer = 1
For Row As Integer = 1 To Int_Grid_Size

[CODE]..........................

View 2 Replies

VS 2005 - Detecting OS Version

May 27, 2009

I've asked this before, but it's just not working out in real life. I need to detect which OS is running. Most of them work, but not all. I define my variable:

[Code]...

Surely that isn't correct? these are the actual results from running the code on a machine and reading what it says. From this information, I can't distinguish between Vista and Win2008. How do I do this? What's the difference?

View 9 Replies

VS 2005 Get Framework Version?

Nov 13, 2009

I am making a little Diagnostic Test app to check that certain folders and files exist.I would also like to list some system specs, i have almost all the ones i need except the currently installed framework version.

I have search the My.Computer libraries and in the help but cannot get the framework version to display in a listbox.How to get the framework version into a string?

View 5 Replies

VS 2005 Get The Version Of A Gaced Dll

Jun 22, 2009

how can I get the version of a gaced dll?

View 2 Replies

VS 2005 Which .Net Version Would Choose

Apr 26, 2010

I have a multi-threaded client and server application written in VS 2005. The server application runs thousands of SQL Server 2005 stored procedures and a lot of file IO. The client application does a lot of file searching, file IO, and string comparisons.Right now everything targets the 2.0 framework. Would it be advantageous to upgrade one or all 3 of them to the 2010 versions? I'm mostly interested in seeing speed enhancements. I haven't been able to find much saying 2010 is better than 2005.

View 2 Replies

Version Contol For .net 2003 Or .net 2005?

Feb 26, 2010

Does any know a good version contol for vb.net 2003 or vb.net 2005?

View 3 Replies

VS 2005 : How To Check Windows Version

Mar 25, 2009

I need to check to see what version of windows is running. How do I do this from VB .NET 2005? and how comprehensive can I get... can I also check for Vista and Windows 7?

View 9 Replies

Deck Of Cards- Blackjack?

Mar 1, 2009

new to programming and I was wondering how would I make a deck of cards for a blackjack program? I would post some code but I don't know where to start

View 3 Replies

VS 2005 : Finding Version Of External Program?

May 30, 2009

I know how to check for the version information from inside a VB2005 application:

Dim version as String= String.Format("Version {0}", My.Application.Info.Version.ToString)

That works fine. But let's say I have two applications, A and B. App A wants to find out what app B's version is. Is there a way to do that?

View 2 Replies

VS 2005 Automatically Use The Latest Version Of Framework In Pc?

Mar 11, 2010

i use VS 2005 ,so it use ,net framework 2.0 ,so if i look to ,net framework that i have in my computer i see 1.0 1.1 2.0 3.0 and 3.5 so my question is is VS 2005 automatically use the latest version of framework in my pc or i should do it manually ,and if manually how i do it?

View 1 Replies







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