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


ADVERTISEMENT

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

Game Programming :: Scopa (Disallowing The Use Of Cards Once Used)?

Jan 11, 2009

As the title says i have a deck of Italian Scopa cards (40)and I want to stop them from being delt once they have been used can i do this with an enabled/disabled or should i find a way to move the individual pictureboxes arround to do it

View 2 Replies

Game Programming :: Program Is Designed To Generate A Random Hand Of Cards Out Of Our List?

Aug 19, 2008

Below is the code that we have been working on. We have bolded the parts which we are unsure about - they are producing errors. (its near the bottom)The program is designed to generate a random hand of cards out of our list of them. This program is a smaller version of what we hope to have in the full one - ie. It tries to get a random hand of 3 cards out of a possible 5.

The part we are having errors with is getting the images to display on each of the 3 'picturebox' objects using a loop (so we don't have to type each picturebox individually).

[Code]...

View 8 Replies

Repeat Cards Showing Up In Game And Win Evaluating Code For Poker Game?

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

Make A Matching Card Game

Apr 18, 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 secs but still have the values from the array and when i click the cards they flip over (from red card to numbered card)[code]

View 2 Replies

Game Programming :: Creating A Card Game For VP?

May 21, 2010

I am trying to create a card game on microsoft visual studio 2008. But i am finding it tricky to get the right codes for the generating button. The button wiill display three random playing card suites and when all three match the user is declared the winner.

View 5 Replies

Get The Cards Out Of Cards?

Dec 15, 2009

I need some code to get the cards out of cards.dll in VB.net. And do the cards have to go in a picture box?

View 2 Replies

What Is Wild Cards And When To Use The Wild Cards

Feb 6, 2009

what is Wild cards how and when can i use the wild cards

View 1 Replies

Accept Credit Cards In .NET

Jun 10, 2009

I would like my website to accept credit cards online. I will manually process the payment. How can I make sure my website is secure to accept payments? Does VISA have specific requirements? Also, how can I check that the credit card information is valid?

View 1 Replies

Assigning Values To Cards?

Apr 27, 2009

basically i've gotten myself into a mess with some last minute project work. shame on me and all that but thats college students for ya. basically i seem to be having problems assiging a simple integer to some pictures in an array. now. basically its a card deck. i've looked this up so many times yet nothing comes to me that fits my code or the way i've been taught. in any case i've got an imagelist and put it into an array to symbolize a deck. now. as i'm doing blackjack i need each card to have its own value. so obviously 2 of hearts value = 2, king = 10 etc.so what i've done is created a function that calls on a string. and used a select case to give a value based on the filepath of the image. however it failed hoplessly. heres a piece of the code:

Sub getcardvalues(ByVal card As String)
Select Case card
Case "decklist.images.item(2club.png)"
value = 2

[code]....

despite this seemingly simple solution i can't seem to pull out the path of these cards as a string. the array simply gives me a number and the actual picture dosnt want to be a string. so my question is this. how can i pull the image path out of the array (eg: deck(1) = decklist.images.item(3club.png)) and turn that into a useable string?

View 1 Replies

Cards Needed For A Straight

Nov 24, 2009

how to calculate how many cards are needed at least to make a straight in texas hold'em?

pratic examples:[code..]

View 2 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

Getting The Cards To Generate Randomly?

Mar 5, 2012

I have to make a card game called SNAP. The point of the game is that two players will flip their card and if they match then one of them have to call out snap. The first one to call out snap gets the card.

I'm having trouble on getting the cards to generate randomly but match every now and then.

View 3 Replies

Random Numbers For Cards?

Feb 27, 2009

Ive got 16 cards to make 8 pairs (simple) ive got it to detect a pair by piccard1.image.TAG what i need to do is though, make the 'tag' part random, 0-15 so i can give each card a tag, but it has to be unique and i cant make it give 16 different number.

View 2 Replies

Choose Between Different Sound Cards For Playback

May 2, 2010

I have a program that I have been building for quite some time, which is sort of a media center type of program. One of the features it includes is a CallerID and call management system that I have integrated into it.I am actually turning the ringers off on my phones, and the program will have it's own ringer instead. One reason i'm doing that is, it is programmed only to ring if I actually have the number already in my phonebook (i.e. no more telemarketers), and other features like quiet time (after a preset time, let's say 11:00 the phone won't ring).So anyhow I have 2 sound cards in my system. One sound card is connected to my living room home theater, which would be for watching tv, movies, etc.The other sound card is going to a separate amplifier that will power speakers that are throughout the house. I want to be able to programatically tell my program to output sound on the secondary sound card.It will be just a simple wav file, and hopefully speech as well (using the system. speech.speech synthesizer).So no matter if your watching a movie, or playing xbox (meaning the stereo will no longer be playing audio from the computer),when the phone rings you will hear the ringer over the speakers, along with a voice saying "Joe Schmoe is calling".I don't know if I can specifically have it play certain sounds over one card, or if it is a per application setting.For instance, if you are watching a movie (meaning the movie is playing through the windows media player control, inside of my program), and the phone rings, I want the phone to ring on the other card without changing the audio from the movie. If i'm not able to do it that way, and if the program itself is only able to play through one card at a time, I will simply make the caller id portion it's own separate application, that way I could make it happen.

View 19 Replies

Create A Program That Randomizes 52 Cards?

Jun 12, 2010

Below is what I have so far this is a webproject, but its for my VB class so I'm not sure where else to post. The object is to create a program that randomizes 52 cards and based on the five cards it draws determine whether its 2 of a kind, three of a kind, straight, or flush.

Partial Class _Default
Inherits System.Web.UI.Page
Dim used(51) As Boolean

[Code].....

View 4 Replies

Enable / Disable NIC When Two Cards Present?

Oct 2, 2009

I need to enable /disable Nic I have a system with two nic cards "Local Area Connection" and Local Area Connection 2" my code will enable and disable the second nic no problem but when I try to disable /Enable "Local Area Connection" it sees the nic but disables "Local Area Connection 2" code to the Enable NIC.[code]...

View 5 Replies

Get Value Of Total Amount Of Cards To Reset

Nov 10, 2011

i am working on a blackjack program, the dealers button works fine and all but when i press the button to hit me it says "Object reference not set to an instance of an object.", and i had it work before, but when it does work the aces either count as 11 or 0, and how can i get the value of the total amount of cards to reset.

View 24 Replies

Random Playing Cards Deal?

Nov 4, 2010

I am creating a VB.Net program to deal out five random playing cards.For that purpose i checked the following tutorial - [URL]..It works great. But It has too much functionality I just want to get rid of the unwanted code to just dealing out 5 random cards. functions and classes from thius program that I should use.

View 2 Replies

Simulating A Real Deck Of Cards?

Sep 21, 2009

Ok here's what my code looks like as of now:

Private Sub btnDeal_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDeal.Click
Dim RandomClass As New Random()
Dim RandomNumber As Integer[code].....

View 6 Replies

Call Up The Cards Within The VISTA Operating System?

May 4, 2009

I am working on a simple card game. I have done several in the past, but always by creating card images in a picturebox. I would like to call up the cards within the VISTA operating system. I get the following error:Unable to load DLL 'cards.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

I have made the following declarations:

Inherits System.Windows.Forms.Form
Private w As Integer = 0
Private h As Integer = 0

[code]....

I am using VB EXPRESS 2008, (for the first time). As I recall, I did not have this problem in VB EXPRESS 2005.

View 1 Replies

Write A Method To Shuffle A Deck Of Cards

Nov 13, 2011

I have a standard deck of 52 cards is represented in an array. Each card is represented as an integer. I wrote the below function to shuffle the cards. Does the code below look ok?

Module Module3
Sub Main()
' initialize array

[Code].....

View 3 Replies

Bridge Program The Time Between Appearance Of Cards Longer?

Apr 24, 2011

I want in my bridge program the time between appearance of cards longer. Different suggestions can be found in the forum. I tried "System.Threading.Thread.Sleep(100)" resulting in the card appearing in half and after the delay the rest. Only the following code does as intended:

Dim Timer As DateTime = Now.AddMilliseconds(2000)
Do Until (Now > Timer)
Application.DoEvents()
Loop

I place this just for the code of the next card to be displayed. It is strange that the dim statement should be there. When I place it instead at the beginning of the program the code doesn't function anymore.I can live with that, however, in the forum some contributors write that this code is dangerous as it can slow down the machine considerably..Is that true or and/or only true for older versions of Visual Basic?

View 5 Replies

Call For The Internal Sound Cards And/or Midi Synthesizer?

Jun 22, 2009

I just started programming in vb 2008 Using vb studio 2008 and vb 4.0 Running Windows XP Home Edition My question concerns the capabilities of vb to call for the internal sound cards and/or midi synthesizer.Can a module call the sound card for it to play MULTIPLE notes at the same time, notes of fixed frequency and duration?

I have tried programming vb 4 AND vb2008 for them to modify the default BEEP sound: using a code i found on internet:private declare Function Beep lib "kernel32" (byval soundFrequency as int32, byval soundDuration as int32) as int32

[Code]...

View 2 Replies

Detecting Addition/Removal Of SDHC Cards In WndProc?

Aug 30, 2011

I am attempting to detect addition/removal of volume media in a Visual Studio 2005 project. I can get this to work using the WndProc message WM_DEVICECHANGE on all types of volumes except SDHC (Secure Digital High Capicity) cards. Is there another Windows Message I have to listen for? If so, what is it, and what else do I have to do?

Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Dim str As String
Dim devtype As Int32

[Code].....

View 1 Replies

VS 2008 - Shortcuts - 416 Different Cards (8 Decks) Declare Them Without Naming Each One?

Oct 31, 2009

I have 416 different cards (8 decks) I dont want to spend too much time and declare each one. Is here way easy way to declare them without naming each one?

Like:

Dim card1, card2 , cand416 as integer

And
list.Add(card1)
list.Add(card2)

list.Add(card416)

I did this and it took me 4 ever:

'deck 1
'c
card1 = 2
card2 = 3

[CODE]...

View 5 Replies

Game Programming :: Speed (Card Game) One AI Player And A Human Player

Nov 23, 2010

I'm making a speed card game [URL] for the final in one of my programming classes. I'm looking for a little assistance with how to go about getting it done the best way. I've included the code I have so far below. How does it look? What would you do differently? Would you do anything the way I did? I need to have one AI player and a human player.

Code:

View 3 Replies

2008 - Draw Random Numbers From Comboboxes For Dealing Cards

Jan 23, 2009

I'm trying to make a program that'll play the card game "War". I've started to code the dealing process, but it doesn't seem to be working. I currently have 3 comboboxes on the form each with numbers representing different cards, 1 that contains all the cards to be dealt, 1 that contains the user's cards, and 1 that contains the computer's cards. I plan to just draw random numbers from these comboboxes for the dealing. However, nothing happens when I click the tool-strip button that's supposed to deal the cards. [Code]

View 5 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







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