Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2006
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Need script that tells when all matches found in memory game

    1) I don't understand how to write the script that tells the game how many pairs where turned over in a memory game. I need it to count the pairs, and when all the pairs are found, then go to #2 below.

    2) I want an alert box to tell the player when they have found all the pairs, but not pop up before they have found all the pairs.

    Thanks!

    Some games have 100 images to find (200 cards total), others have 54 cards.
    Thanks in advance! I am just beginning to learn JavaScript and understand it.

    A link to the original code I got from vwphillips, if memory serves me correctly:
    http://www.tpgames.com/games/tpmemor...emoryCode.html

    This script uses only 10 cards, as its a tester script for coding the alert box and counting script.

    Many Thanks!
    Last edited by tpgames; 12-23-2006 at 01:09 AM.

  • #2
    New Coder
    Join Date
    Feb 2006
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile Thanks Vic!

    vwphillips gave me a link to his latest memory game that I think will solve the problem. It also does more than I asked for, but I think that the fan base will like it much better too!

    MANY THANKS!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •