| | | Forum Newbie
       
Group: Forum Members Last Login: 5/1/2007 12:49:36 AM 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 |
| | | | 
Forum God
       
Group: Forum Members Last Login: Yesterday @ 4:36:16 PM Posts: 1,463, Visits: 3,400 |
| | Welcome to A1vbcode melkor. What are you using to display your cards, Cards32.dll, Cards.dll, Qcards.dll, vbcards.ocx? 
Keith http://www.martin2k.co.uk/forums/ I've been programming with VB for 12 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning. |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 6/16/2008 8:23:37 AM 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 |
| | | | 
Forum God
       
Group: Forum Members Last Login: Yesterday @ 4:36:16 PM Posts: 1,463, Visits: 3,400 |
| 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. 
Keith http://www.martin2k.co.uk/forums/ I've been programming with VB for 12 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning. |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 6/16/2008 8:23:37 AM 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. |
| | | | 
Forum God
       
Group: Forum Members Last Login: Yesterday @ 4:36:16 PM Posts: 1,463, Visits: 3,400 |
| Yes I know what is supposed to happen creglenn, which part are you stuck on? 
Keithhttp://www.martin2k.co.uk/forums/ I've been programming with VB for 12 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning. |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 6/16/2008 8:23:37 AM 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 |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 6/16/2008 8:23:37 AM 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 |
| | | | 
Forum God
       
Group: Forum Members Last Login: Yesterday @ 4:36:16 PM Posts: 1,463, Visits: 3,400 |
| | 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. 
Keith http://www.martin2k.co.uk/forums/ I've been programming with VB for 12 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
|
| |
|
|