Main Menu

Card Match (Memory Game)

Started by kevin, April 07, 2009, 01:15:24 PM

Previous topic - Next topic

kevin


  Card Match (Memory Game)

     This example is  a version of the classic memory game, where you flip cards to find the matching  pairs.  Each time a pair is located, you're awarded a score.  When all pairs are matched you win!

     Pretty simple game mechanic, but it can be a pretty enjoyable little  game.     Have Fun!

geecee

#1
Nice one kevin.

From where did you get your inspiration?

I thought the purpose of the forums was to share programming information and ideas so why the

QuoteCopyright 2009 by Kevin Picone, All Rights Reserved.

Does this mean that I cannot use any part of the code in one of my programmes?

:-\
geecee
LANG MEY YER LUM REEK

A smile costs less than electricity and gives more light :)

geecee

Question for kevin

QuoteDoes this mean that I cannot use any part of the code in one of my programmes?

???
geecee
LANG MEY YER LUM REEK

A smile costs less than electricity and gives more light :)

kevin


geecee

#4
Thanks for your reply kevin.

Just wanted to clarify.

I can read and understand (I think) the code except for where there is a dot or period "."

What does this do as in the following piece of code ...... Is there something in the help files to explain?

PlayBASIC Code: [Select]
  // Check if this card needs to change from selection state to a new state
if Cards(ThisCard).ChangeStateTime<>0
if CurrentTime>Cards(ThisCard).ChangeStateTime
Cards(ThisCard).State=Cards(ThisCard).NewState
Cards(ThisCard).ChangeStateTime=0
Cards(ThisCard).NewState=0
endif
inc StateChangesCount
endif





:)
geecee
LANG MEY YER LUM REEK

A smile costs less than electricity and gives more light :)

kevin


  They're User Defined Types 

  Learn about them under Help -> About -> Types