Written By TheVBProgramer.
PROGRAMMING EXERCISE
Concentration
Write a VB application that implements a game of Concentration. In a game of Concentration, the player is presented with a board containing some number (24 in my implementation) of "covered" images. The player clicks on the covered pictures in sets of two to reveal the randomly assigned pictures beneath. If the two pictures match, they remain displayed; if not, they are flipped back over. The goal of the game is to reveal all matches (12 in my implementation) in as short a time as possible.
The program must maintain (in a file) the best time and display it on the screen as the "time to beat". Whenever the best score is beat, the new time becomes the best score and should be written out to the file.
My implementation also tracks the number of turns it took to reveal all matches (the fewer the better). A perfect score would be 12 in my implementation (but a score of 12 turns would be nearly impossible, as the player would have make 12 correct guesses in a row).
My implementation of the game is shown below. I am using playing cards as the pictures.
When the game first starts, all cards are shown face down. The "Best Scores" area shows the previous best time and number of turns, read in from a file. (Note: The "Reset" button effectively clears the best scores – it sets the best time to 99:99 and the number of turns to 9999.) The clock for "This Game" has started ticking.

In the middle of game play, the pairs that have been matched remain face up, those yet to be matched remain face down. The clock is still ticking (one minute, 20 seconds – looks like we're not going beat the best time of one minute, 14 seconds!).

At the end of the game, all cards will be face up and the clock will stop ticking.

Download the solution for this project here.
Comments
Urgent..A.S.A.P
I need your help sir.....I'm creating same game same as you name memory game....I don't know how to code for the high score and remember the player name and their score........hope you can help me sir.....and Sir can i get the code for this game..Can u contact me using my email...
Thanks Sir
helo
hi.. im a newbie at visual basic and i have a software engineering project. we must us VB 6 on this certain project.. i'm creating a dictionary. when a certain word is entered, it will display an image if available. pls help me.. thnx so much.. my e-mail is spiker_akp73@yahoo.com
Pls Sir, i am a new
Pls Sir,
i am a new programmer and i am very interested in becoming a very good programmer.
pls can you help me with some tutorials that will help me in achieving my dreams, i will very grateful.
this is my e-mail address
Iruhde@yahoo.com.
Pls sir, you can send the tutorials to my email.
i will be very grateful.
thanks for your anticipated good response.
Guyz
we are programmer.,.,
so we need to study,.
and use our imagination,.
and i believe that we can do the program we want,.,.
just think,.,
to study and not to think is WASTE
to think and not to study is DANGEROUS
can you help me?
we have a thesis. we need to make a System using VB6.0 It is a Time in Time out System. every professor should Enter their personal code to see their schedules. got it? please help me.. Please reply. thanks
source code and interface
Respected sir
I want source code with interface for small vb games.can u please send it as soon as possible...........
pls...send me a solution
pls...send me a solution about creating this game....coz i can't gat it! it's very hard for me.....thanks.....
Programming
can you gave me the source code of this program to my email thank you...
this is so hard for me..... :(
I can't do it, it's a master level for me. Please tech me how to....!!!
thanks a lot for the article.
InQuiry
hai,,everyone,,who knows the code of this game in VB6..PlS send me a coDe...heres my email address:::::: francisco_joshua15@yahoo.com...we need a program that will use VB6 to create a simple or any otHer games..This program is really helpfuL..great thanKs tO whOm be respoNDinG...thanks.... :-D
thanks
thanks
please give me the code for these game please
i am very interesting to know about how these games are formed in vb
so please tell me the codes fer these games on my id
NOOBS
WHAT THE HECK are you noobs asking for the source code for?
IT'S IN THE ATTACHMENT YOU NOOBS
CODE
pls can u send the sourcecode to my email ford_dy@yahoo.com
vb
very thanks
Q&A game (vb6.0 code)
hu cn help me with this??,.. please thanks
can u plz send me the code
can u plz send me the code of this prg at my email id...
My comment
tyryhai sir i am muniaraj ,i have a one problem multi report i am created but report is one generated display ,that time next report generated but no display
what do to
thanks
can you gave me this source code thanks...
could i please get the code to this game?
could i please get the code to this game? i'm working on a school project and need some help...
my email address is tp-hutchings@hotmail.com
thathanks :]
Code
heyhey there, please kindly send me the code at runechrist_@hotmail.com. You wil be blessed
Klass
Thanks
When the game first starts,
When the game first starts, all cards are shown face down. The "Best Scores" area shows the previous best time and number of turns, read in from a file. (Note: The "Reset" button effectively clears the best scores – it sets the best time to 99:99 and the number of turns to 9999.) The clock for "This Game" has started ticking.
3freester
it' s good
i like it
WTF wers the Code......?
WTF wers the Code......?
I found a bug! i got the
I found a bug!
i got the joker upp but he stays upp :S
youst one :S
send the code
help me to learn this prog....
kindly give the code......or send it to my email add:danielogendi@yahoo.com
plssss help
PACMAN VB Code
hu can help me doin' this PACMAN VB CODE...
thanks!
here's my email:
kuramapogz@yahoo.com
here is ur PACMAN VB CODE
try this PACMAN VB CODE
http://www.caspercomsci.com/pages/vbsource.htm#11
i think u will like it, peace
Other
hello i want to learn how to creat database for my visual basic program: pls tell me how thanks a lot in advance>>>>
help me to learn this prog....
kindly give the code......or send it to my email add:alanruiz_18@yahoo.com
plssss help me i want to be learned visual basic...
hi
small but interesting game u put ere.can u put another 1 with explanation 4 every code in the program in order to understand everybody? thanx.
Coding
Like for example, how do you choose 12 random cards thats gonna be under those blank ones, and theres always two of the same card?
Please help, want to know this kinda thing, would've helped me alot...
Tutorial?
I was hoping to get you to try to teach how to make it, because it sounds sweet, and i want to know how to make it :P
I dont like do download projects, makes me feel lazy :(
Unfortunately I have a huge
Unfortunately I have a huge list of tutorials to write at the moment. Maybe you could download this code and write a tutorial for it. I will gladly post it here with your info for the credit. This way you learn, you don't feel lazy, and you help others at this site.
i am new in vb plz send me
i am new in vb plz send me tutorials
i am ne in vb plz send me
i am ne in vb plz send me tutorial
Thanks
Im considering to make a tutorial on an easier project, but i think ill have to improve my english first ;-p
Love this site, helped me alot.
yes
ok thanx a lot
Post new comment