Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to program a Drag and Drop facilities to simulate Scrabble game.
My problem is : I have seven tiles for seven letters. I know D&D letters to the plate, but if I cover a letter by one another, when I remove this covering letter the previous letter disappeared (obviously) and let a blank at this place. How to conserve previous image and recover ancient image when covered and discovered...

What I have tried:

I'm trying to program a Drag and Drop facilities to simulate Scrabble game.
My problem is : I have seven tiles for seven letters. I know D&D letters to the plate, but if I cover a letter by one another, when I remove this covering letter the previous letter disappeared (obviously) and let a blank at this place. How to conserve previous image and recover ancient image when covered and discovered...
Posted
Updated 1-Oct-18 9:44am
v2
Comments
Richard MacCutchan 1-Oct-18 11:04am    
You need to keep a list of all the tiles, and all the squares, and their positions on the board. When you uncover a square then you need to redraw it to show its original contents.
ZurdoDev 1-Oct-18 16:17pm    
What he said ^
Member 14003792 2-Oct-18 5:48am    
Thanks for your reply, I will try this way…(sometimes my English can be seems a little be deficient it's always easy for me my maternal langage is the french….)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900