Quote:
Originally Posted by Daerath IMO, this isn't the best design. Whenever someone cuts a deck they generally do so at random. Add a method that has no parameters that will randomly cut the deck and then have it call the overloaded method that takes an index. This way you don't have to specify the index. |
I would disagree. Assuming this is a game for multiple people to play, allowing them to choose a spot to cut the deck makes it more realistic. Not everyone does it randomly. And adding a method who's sole purpose is to call another method is IMO a waste of time, energy and space.