Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


card game help


card game help

Author
Message
melkor
melkor
Forum God
Forum God (411 reputation)Forum God (411 reputation)Forum God (411 reputation)Forum God (411 reputation)Forum God (411 reputation)Forum God (411 reputation)Forum God (411 reputation)Forum God (411 reputation)Forum God (411 reputation)

Group: Forum Members
Posts: 1, Visits: 1
i need to make a way to get the cards in a memory card game in a random order each time. i can get the cards in a random order however i do not no how 2 get the cards to appear in pairs in the random order.

AzA
Keithuk
Keithuk
Forum God
Forum God (291K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
Welcome to A1vbcode melkor.

What are you using to display your cards, Cards32.dll, Cards.dll, Qcards.dll, vbcards.ocx? Wink

Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

creglenn
creglenn
Forum God
Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)

Group: Forum Members
Posts: 4, Visits: 5
I need help on this to i am a new member but i am in high school and dont know where to start. I have to create a memory card game that has 16 picboxes( all in an array) named picFlag and 16 labels all in an array as well named lblFlagName and the labels are the same size as the picboxes. Also, i have 3 command buttons 1 to start a new game 2 to show help information and 3 to exit. I dont know how to code it to show the cards. I have to show 2 matching cards by clicking a picbox and if the pics dont match after pick 2 it resets and starts over. If it will be helpful i will post the paper my teacher gave me to show you what it looks like and all the instructions that are on it. I only know how to create the interface not the code.

Thnx in advanced

Keithuk
Keithuk
Forum God
Forum God (291K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
Welcome to A1vbcode creglenn.

Well with this type of app you don't need to use any card.dll you can just use an array of pictures on a picture Form. These control names are picFlag and lblFlagName so are you showing pictures of different types of flags? There are plenty of flag icons on the web you could use them, there are some in VB flag icons as well.  Wink

Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

creglenn
creglenn
Forum God
Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)

Group: Forum Members
Posts: 4, Visits: 5
It is a program that has 16 pix boxes and the picboxes are suppose to show a certain flag when it is clicked. When another flag is clicked it should show a different flag or the same flag so that they match. and the labels should display if theymatch or if they dont' match and if they dont match it should reset the cards if they do match it should make those cards blank.
Keithuk
Keithuk
Forum God
Forum God (291K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
Yes I know what is supposed to happen creglenn, which part are you stuck on? Wink

Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

creglenn
creglenn
Forum God
Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)

Group: Forum Members
Posts: 4, Visits: 5
Im stuck on the code part i dont know where to start. I dont know wheter to use If, Then, Statements or what. Do you have a sample or know someone with a sample of this type of program
creglenn
creglenn
Forum God
Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)Forum God (1.6K reputation)

Group: Forum Members
Posts: 4, Visits: 5
Im stuck on the code part. I dont know wheter to use If...Then statements or what. Do you know someone who has this type of program with code so i can get an idea of what to do. Thnx in advance
Keithuk
Keithuk
Forum God
Forum God (291K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
Ok creglenn here is a little VB3 app that I decompiled many years ago that uses icons for a memory match game. It uses a nice little shutter arrangement to show the icon. You can play a 2 player game or play the computer. Now you can load all the icons into a picture Form and show them from there, that way you don't delete or rename them.

Have fun. Wink

Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

Attachments
Iconcentration.zip (2.1K views, 46.00 KB)
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search