← Questions
Deck of cards with shuffle, draw and sort
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Model a deck of playing cards with classes for cards and the deck. Implement a fair shuffle (every order equally likely, Fisher-Yates), drawing cards, and putting the deck back in order by rank and suit. Discuss how you would test that the shuffle is fair.
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing
