WRI Colleges Forum
Hello WRIans...

If you are not a member yet, please register with complete information to be able to post, reply and to create thread or topics in the forum.

Madya na po kita!!

Login with FACEBOOK is now available for facebook users.


[Admin]

Join the forum, it's quick and easy

WRI Colleges Forum
Hello WRIans...

If you are not a member yet, please register with complete information to be able to post, reply and to create thread or topics in the forum.

Madya na po kita!!

Login with FACEBOOK is now available for facebook users.


[Admin]
WRI Colleges Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Please notify or send an SMS to forum admin @09501527151 for activation of your account.
Welcome...... Alumni of Naga, Rinconada, Calabanga, Partido and Sorsogon....
Alumni of the WRI-Goa Branch is planning to have a simple Alumni Reunion on 2018. Please text 09501527151 for attendance.
We are looking for Forum Moderator from other branches; Naga, Rinconada, Calabanga and Sorsogon Alumni. Salamat.
Search
Display results as :
Advanced Search
March 2024
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
24252627282930
31      

Calendar

Latest topics
WRI-Goa Pa-Raffle 2010 WinnersSat Dec 02, 2017 6:47 pmarvie21
alumni reunion... Thu Nov 30, 2017 6:33 pmarvie21
Annyeong-haseyoThu Nov 30, 2017 6:28 pmarvie21
hello.... good daySun Nov 19, 2017 6:59 pmChelleAnn
Forum Rules and GuidelinesSun Nov 19, 2017 3:36 pmradax
Uploading of Images and VideosSun Nov 19, 2017 3:34 pmradax
Troubleshooting your telephone line... Sat Jul 29, 2017 6:18 pmradax
What is PROTOCOL?Sat Jul 29, 2017 6:17 pmradax
Pa-Raffle 2010 @ WRI-Goa GroundMon Jul 17, 2017 8:20 pmradax
Forum Rules & GuidelinesMon Jul 17, 2017 8:17 pmradax
Forum Group SynchronizationMon Jul 17, 2017 8:12 pmradax
The Sportsfest 2014Wed Mar 19, 2014 10:18 amradax
kumusta? goanians???? Thu Mar 13, 2014 10:19 pmGuest
WRI Foundation 2014 at SM City NagaMon Mar 10, 2014 11:47 amGuest
hi everyone..Mon Mar 03, 2014 12:37 pmradax
Care and maintenance of Leather furnitureMon Oct 28, 2013 5:14 pmGuest
Consider the filling of the sofaFri Oct 25, 2013 5:12 pmGuest
Conversion Dining Top for Pool TableTue Oct 22, 2013 4:48 pmGuest
Antique Writing DesksMon Oct 21, 2013 5:01 pmGuest
Take care of your wooden outdoor furniture Sat Oct 19, 2013 4:39 pmGuest
Cooking FeastSat Aug 27, 2011 3:18 pmmherlcan
wri-calabanga please read thiszzz....Sun Jul 17, 2011 3:51 pmrickzmanansala
wri-calabangaFri Jul 08, 2011 6:02 pmrickzmanansala
haen lamang ang pictures kan nakaaging instramurals 2010??Tue Jul 05, 2011 12:16 pmrickzmanansala
PROGRAMMING EXERCISE ConcentrationTue Jul 05, 2011 12:15 pmrickzmanansala
Have a nice day WriansTue Jul 05, 2011 12:12 pmrickzmanansala
2012...must see it and must believe it???Tue Jul 05, 2011 12:10 pmrickzmanansala
wri calabanga team building...Mon Jul 04, 2011 11:26 amrickzmanansala
FM TRANSCEIVER ARCHITECTURESun Jul 03, 2011 3:49 pmrickzmanansala
hi po sir danSun Jul 03, 2011 3:48 pmrickzmanansala
asar talaga.. Sun Jul 03, 2011 3:48 pmrickzmanansala
Saang Branch ka ba?Sun Jul 03, 2011 3:34 pmrickzmanansala
Attention!! aLL WRI Graduates..!!!Tue Dec 21, 2010 3:00 pmmeowchi
WRI Intramurals 2010Thu Nov 04, 2010 4:35 pmmherlcan
What is a Protocol?Tue Oct 26, 2010 12:00 pmBlex
What is a Network?Tue Oct 26, 2010 11:59 amGuest
How to crimp a cable RJ45Tue Oct 26, 2010 11:39 amGuest
Troubleshooting Your Phone LineTue Oct 26, 2010 11:24 amBlex
General printer troubleshooting.Tue Oct 26, 2010 11:08 amGuest
kelan po ba ang intrams ng WRI-Goa?Tue Oct 12, 2010 10:10 amGuest
ehem...Sun Sep 19, 2010 4:35 pmGuest
rationalTue Sep 07, 2010 7:07 amarvie21
Pagsungko ni INA (2010)Sat Sep 04, 2010 1:49 pmGuest
WRI-GOA STARTING POINT...Fri Sep 03, 2010 1:37 amarvie21
WRI-Goa Alumni EventsSun Aug 29, 2010 11:53 amBlex
When there was a WRI Kolping in CanamanWed Aug 18, 2010 12:29 pmarvie21
kumusta wrians?Sun Aug 15, 2010 10:23 pmbonnkeivy
Basic PC AssemblySun Aug 08, 2010 6:59 pmGuest
Propaganda TechniquesSun Aug 08, 2010 6:32 pmGuest
Good news for WRIFri Jan 22, 2010 10:08 amradax
Tictactoe in C++Wed Dec 16, 2009 2:29 amviraxz
Multiple Form Splash ScreenFri Dec 11, 2009 8:53 pmINKHRIPTOR
WRI Goa momentsThu Dec 10, 2009 3:15 pmGuest
help me my friends.. :DThu Dec 10, 2009 3:01 pmGuest
To all WRIan Graduates...Thu Dec 10, 2009 2:03 pmGuest
Inline encryption with using bintoint algoTue Dec 08, 2009 5:20 pmjcodee
Shaker Sort ANSI CTue Dec 08, 2009 4:52 pmjcodee
Calling of all WRI Goa GraduatesTue Dec 01, 2009 2:18 amradax
WRI Foundation Anniversary on March 2006Sun Nov 29, 2009 1:22 pmradax
Alumni Date on the making..Sat Nov 28, 2009 12:02 pmBlex
Simple Calculator in VBFri Nov 27, 2009 6:49 pmGuest
Planning for WRI AlumniThu Nov 26, 2009 11:22 pmGuest
WRI SorsogonFri Nov 20, 2009 2:34 amradax
Batch 2005 Grads From Rassel SilosFri Nov 20, 2009 1:43 amradax
WRI Goa (Tuloy po kau sa bahay ni Kuya)Fri Nov 20, 2009 1:40 amradax
WRI Foundation Anniversary on March 2006Fri Nov 20, 2009 1:29 amradax
To all WRIans...Mon Nov 16, 2009 9:12 pmmeowchi
Online Forum MeetingSat Nov 14, 2009 2:31 pmmeowchi
Merry Christmas..Sat Nov 14, 2009 2:28 pmmeowchi
Calling all WRI Graduates!Thu Nov 12, 2009 6:40 pmmeowchi
Updated WRIans Forum SiteFri Nov 06, 2009 4:19 amradax
Pictures of WRIWed Nov 04, 2009 4:08 pmmeowchi
List of names of WRI GraduatesMon Oct 26, 2009 11:11 amradax
Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

Top posters
157 Posts - 43%
42 Posts - 12%
25 Posts - 7%
23 Posts - 6%
23 Posts - 6%
21 Posts - 6%
20 Posts - 6%
20 Posts - 6%
19 Posts - 5%
13 Posts - 4%
Cool Radio Hits



Page Hits
reset 12/3/2017
PROGRAMMING EXERCISE  Concentration Counter

Go down
INKHRIPTOR
INKHRIPTOR
Newbie
Posts : 19
Join date : 2009-11-14
Age : 35
Home Address : Magarao

PROGRAMMING EXERCISE  Concentration Empty PROGRAMMING EXERCISE Concentration

Sun Dec 13, 2009 6:48 pm
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.

PROGRAMMING EXERCISE  Concentration Image001

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!).

PROGRAMMING EXERCISE  Concentration Image002

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

PROGRAMMING EXERCISE  Concentration Image003

Download the solution for this project HERE.

------------------------------------------------------------------------------------------------
Source: http://www.vb6.us/source-code/full-vb6-game-concentration

Written By TheVBProgramer.
rickzmanansala
rickzmanansala
Newbie
Posts : 21
Join date : 2011-07-03
Age : 29
Home Address : calabanga, camarines sur

PROGRAMMING EXERCISE  Concentration Empty Re: PROGRAMMING EXERCISE Concentration

Tue Jul 05, 2011 12:15 pm
nice...
Back to top
Permissions in this forum:
You cannot reply to topics in this forum