View Single Post
Old 01-02-2007, 05:35 PM   #5 (permalink)
Zuuljin
So there's this plane on a treadmill...
 
Zuuljin's Avatar
 
Join Date: Jan 2005
Location: Southern California
Posts: 2,935
+5 Internets
Send a message via AIM to Zuuljin
Quote:
Originally Posted by Daerath View Post
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.
Zuuljin is offline   Reply With Quote

 
Uberguilds Network