473,396 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

New in Visual Basic, Need Help

2
Hi I'm new in basic and I need help getting started with a project. 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. I'm sorry if this isn't detailed enough. Just let me know if there needs to be more info
Mar 5 '12 #1
3 1455
Rabbit
12,516 Expert Mod 8TB
There's no need to "generate randomly but match every now and then". All you need to do is generate randomly. By pure chance, they will match every once in a while.
Mar 5 '12 #2
Keaton
2
Thanks for the help. Now I'm having trouble on making a point system for the game. How do I make it to where it will give the person 10 points for getting a match. So the person will only get 10 points if they press the Snap button and they have to match. If I can just get this to work then I finish the project.
Mar 6 '12 #3
Rabbit
12,516 Expert Mod 8TB
When they press the snap button, check if your two generated numbers match, if they do, give them 10 points.
Mar 6 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: DhavalPatel1983 | last post by:
Hi, I need help in VB for handling Listview control. Problem Discription I have one listview control. now i want to develop one application which entered data in to listview control at...
0
by: monkeycool | last post by:
This is for my intro to computer programming class. Please help me solve these 2 assignments: For the following items, you are to write the source code solution to each problem using the...
4
by: corky20 | last post by:
Can someone help...i've only started learning visual basic and i'm pretty new to programming(i know but everyones been there at one point) and need help with a question! A man is paid at the...
4
by: bilalbajwa2336 | last post by:
I want to make a program in visual basic. When i put my salary data in VB (like: Time In , Time Out, DAte, DAy) VB automatically (in the back ground) input this data in the Excel and Show out puts of...
0
by: Mubs | last post by:
could some one help with the following: i need to delete the sectors created in list and the flex grid to show this and need help with the "modify"...when modifying the sizes bigger than...
1
by: Eduard Allen | last post by:
I am a newbie to this site.. Would you help me to know on how to use the Data Report in Visual Basic 6.0 properly? I have my thesis, that's why I need to learn the process on how to use it.
2
by: Danielle | last post by:
All - Thanks in advance for any help you can provide. I've been working with a GridView in Visual Basic for a long time trying to get a list of contacts and to be able to edit and delete the...
0
by: gwmarin | last post by:
Hello, i am a complete beginner with visual basic so lets see if i can explain my problem. I've got microsoft excel 2003 which has got Visual Basic 6.5 and i need to create a macro which will click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.