Deck Shuffler

Install Java to view this project right on your browser!

user_icon zanderli shared it 4 years, 8 months ago
88 views, 1 person loves it, 13 downloads, in 1 gallery
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
Jens Jens 4 years, 8 months ago

an excellent project! Instead of creating a different sprite for each of the 52 cards you could also create just a single sprite with 52 costumes, and when shuffling assign a random costume to it (the 'switch to costume ___' block also takes numbers, variables and even the 'pick random from 1 to 52' block as an argument). Then you could 'stamp' the sprite in the location you want it to appear (say the top row) and keep track of the drawn cards in five global integer variables, preventing them from being drawn again.

Please Wait...