I have been able to work out the Matching Pairs Game:
(ZIM Matching Game)
This is an extract from the code that will give 2 sets of each card.
var pics = ["squid.jpg", "seahorse.jpg", "shell.jpg", "crab.jpg"];
var answers = shuffle(pics.concat(pics,pics,pics)); // four sets or two sets of matches
I am just wondering if it is possible to match 2 different cards. for example, what if I had the following code:
// Images array -
var pics = ["create1.png", "create2.png", "create3.png", "create4.png", "create5.png", "create6.png", "create7.png", "create8.png", "create9.png", "create10.png"];
// Generate one set of pairs instead of multiple sets
var answers = shuffle(pics.concat(pics)); // One pair per image
... but wanted to match create1 with create2, create3 with create4 etc. Is that possible?
That would allow me, for example to have 3 x 5 on one card and 15 on another for doing a times table matching exercise.
Thanks for any guidance on this.
Rod