Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Visual Basic (VB 4/5/6) » Game Programming » card game help


card game helpExpand / Collapse
Author
Message
Posted 5/1/2007 12:56:09 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #21820
Posted 5/1/2007 1:26:37 PM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum 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.
Post #21825
Posted 6/13/2008 9:35:04 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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

Post #25186
Posted 6/13/2008 10:16:39 AM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum 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.
Post #25187
Posted 6/13/2008 11:01:24 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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.
Post #25188
Posted 6/13/2008 5:26:19 PM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum 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?

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.
Post #25190
Posted 6/16/2008 8:24:52 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #25209
Posted 6/16/2008 8:26:01 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #25210
Posted 6/17/2008 5:58:24 AM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum 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.


  Post Attachments 
Iconcentration.zip (171 views, 46.75 KB)
Post #25216
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Brian, Peter

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 9:52am