Quote: "btw, to hide old text u dont need a box, just use SET TEXT OPAQUE, then ur background color (color after , in INK command) will become a filled box behind the text, hiding nething behind it"
That works, usually, though, I find it best to just use sync and cls in the loop so that you can just redraw everything like so:
sync on : sync rate 0
do
STUFF GOES HERE
sync
cls
loop
Note that if you put the cls and the sync in a different order, you WILL get nothing but a black screen. Why? Because it clears the screen, then displays it, rather than displaying it then clearing it.
I would agree with obese, though, as far as your question goes.
An array like this:
DIM Field(XCards,Ycards)
where XCards and Ycards are the total number of cards horizontally and vertically, respectively. Then, when a card is selected, it is set from 0 to 1. If it is paired, set it to 2 (or you could do 1, but overlap can make bug testing problematic sometimes). So, when clicking, you just check if the card being clicked (referenced in the array by its "coordinates") is 0, then select it and set its value to 1. Once both cards are selected, if they are the same card, set the value to 2.
Make sense?
Great Quote:
"Time...LINE??? Time isn't made out of lines...it is made out of circles. That is why clocks are round!" -Caboose